Skip to content

chimple/account-manager

Repository files navigation

account-manager

Capacitor plugin for AccountManager

Install

npm install account-manager
npx cap sync

API

getAccount()

getAccount() => Promise<{}>

Returns: Promise<{}>


addNewAccount(...)

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()

showAccountPicker() => Promise<void>

getTokenForAccountCreateIfNeeded(...)

getTokenForAccountCreateIfNeeded(options: { accountType: string; authTokenType: string; }) => Promise<void>
Param Type
options { accountType: string; authTokenType: string; }

invalidateAuthToken()

invalidateAuthToken() => Promise<void>

authenticator(...)

authenticator(options: { userName: string; AccountType: string; }) => Promise<void>
Param Type
options { userName: string; AccountType: string; }

accountPicker()

accountPicker() => Promise<authData>

Returns: Promise<authData>


Interfaces

authData

Prop Type
authAccount string
sourcedId string
endpointUrl string
addedType string
authToken string

About

Capacitor plugin for AccountManager

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors