Capacitor plugin for AccountManager
npm install account-manager
npx cap sync
getAccount ( ) = > Promise < { } >
Returns: Promise<{}>
addNewAccount ( options : { accountType : string ; authTokenType: string ; } ) => Promise < void >
Param
Type
options
{ accountType: string; authTokenType: string; }
getExistingAccountAuthToken(...)
getExistingAccountAuthToken ( options : { userName : string ; authTokenType: string ; } ) => Promise < void >
Param
Type
options
{ userName: string; authTokenType: string; }
showAccountPicker ( ) = > Promise < void >
getTokenForAccountCreateIfNeeded(...)
getTokenForAccountCreateIfNeeded ( options : { accountType : string ; authTokenType: string ; } ) => Promise < void >
Param
Type
options
{ accountType: string; authTokenType: string; }
invalidateAuthToken ( ) = > Promise < void >
authenticator ( options : { userName : string ; AccountType: string ; } ) => Promise < void >
Param
Type
options
{ userName: string; AccountType: string; }
accountPicker ( ) = > Promise < authData >
Returns: Promise<authData >
Prop
Type
authAccount
string
sourcedId
string
endpointUrl
string
addedType
string
authToken
string