@welibraryos/capacitor-web3auth
Capacitor Plugin for Web3Auth Native SDK
Install
npm install @welibraryos/capacitor-web3auth
npx cap sync
API
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>
Param | Type |
---|---|
options |
{ value: string; } |
Returns: Promise<{ value: string; }>
login(...)
login(options: W3ALoginParams) => Promise<{ result: W3ALoginResponse; }>
Param | Type |
---|---|
options |
W3ALoginParams |
Returns: Promise<{ result: W3ALoginResponse; }>
logout()
logout() => Promise<void>
Type Aliases
W3ALoginResponse
{ ed25519PrivKey?: string; privKey?: string; userInfo?: W3AUserInfo; sessionId?: string; }
W3AUserInfo
{ aggregateVerifier?: string; email?: string; name?: string; profileImage?: string; typeOfLogin?: string; verifier?: string; verifierId?: string; dappShare?: string; idToken?: string; oAuthIdToken?: string; oAuthAccessToken?: string; }
W3ALoginParams
{ clientId: string; network: string; verifierClientId: string; verifierName: string; verifierId: string; verifierTypeOfLogin: string; whiteLabelName?: string; whiteLabelLogoLight?: string; whiteLabelLogoDark?: string; whiteLabelDark?: boolean, whiteLabelPrimaryColor?: string; loginProvider: string; loginDomain?: string; loginIdToken?: string; loginVerifierIdField?: string; }