Social Logins and Create Wallet
The Leap SDK provides social login methods that allow users to log in with a familiar web2 style approach, while creating non-custodial wallets for them in the background. You can also customize the theme to reflect your brand.
To initialize the SDK with your preferred chain and login service, use the following code:
Once you have initialized the SDK, you can create a button for the user to initiate the login process. To log in, simply call:
If you are using web3auth as your preferred login service, you can specify the following LOGIN_PROVIDER_TYPE options:
Note : We recommend using Promises for fields that need network access to be determined.
To get the currently logged-in user, use the following code:
Sign out
To log out or disconnect the user's wallet, call:
Last updated