@welibraryos/capacitor-web3auth
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

@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; }

Readme

Keywords

Package Sidebar

Install

npm i @welibraryos/capacitor-web3auth

Weekly Downloads

22

Version

2.0.0

License

MIT

Unpacked Size

32.4 kB

Total Files

27

Last publish

Collaborators

  • custard7