Error Handling
Othent error handling.
import { Othent } from "@othent/kms";
const othent = new Othent({ appInfo, throwErrors: true, ... });
// ...
const throwAnError = async () => {
try {
// Make sure the user is authenticated, or prompt them to authenticate:
await othent.requireAuth();
// This will throw an error:
await othent.sign({ foo: "bar" } as unknown as Transaction);
} catch (err) {
// TODO: Handle error...
}
}throwErrors = false
throwErrors = falseOthentError
OthentErrorLast updated