Configure user authentication methods
This document provides an overview of different user authentication methods available in the MoonPay Authenticate SDK.
Email OTP (One-Time Password) is a method where users enter their email, receive a one-time password in their email inbox, and use that password to authenticate on a partner website.
First configure the SDK:
Then call the show
method:
You can also prefill the user's email:
Login Link is a passwordless authentication method. Users enter their email, receive a link in their email, and clicking on the link automatically authenticates them.
First configure the SDK:
Then call the show
method:
You can also prefill the user's email:
MoonPay Authenticate SDK supports Apple and Google OAuth for seamless and secure user authentication. Follow the steps below to integrate these authentication providers into your application.
Import the OAuthProviders
and OAuthOptions
code from the Auth SDK package:
Update your SDK configuration to enable SocialLogin
, and include Apple and/or Google as supported OAuth providers. Additionally, you can specify the display mode and Apple's "Hide My Email" option:
To show the modal with the OAuth methods, continue to use the same code, such as sdk.login.show()
The MoonPay Authenticate SDK offers the capability for users to seamlessly link their MetaMask wallet during the login process. This integration enhances user experience by providing direct access to wallet functionalities post-authentication.
To enable the wallet linking feature in your SDK, incorporate the linkVerifiedWallet
option:
Once this option is set, users will have the option to link their MetaMask wallet when they log in through the SDK.
Updated 4 months ago
Table of Contents
SDK configuration
Authentication methods
Email OTP
Login link
Apple and Google OAuth
Linking wallet