getPermissions()
ArConnect Injected API getPermissions() function
As discussed in connect()
's Permissions section, users using Othent are implicitly giving dApps that use Othent full control of their wallets.
Therefor, the getPermissions()
function always returns an array with all possible permissions.
API
getPermissions(): Promise<PermissionType[]>;
Example usage
import { Othent } from "@othent/kms";
const othent = new Othent({ appInfo, throwErrors: false, ... });
const permissions = await othent.getPermissions();
console.log(`Othent has the following permissions = ${ permissions.join(", ") }`);
Last updated