sdk.auth.email
sendOTP
Send a one-time password to a user’s email address.Parameters
- email (String) - User’s email address
Example
verifyOTP
Verify an email OTP code and authenticate the user.Parameters
- token (String) - OTP code entered by user
Example
resendOTP
Resend the email OTP.Example
sdk.auth.sms
sendOTP
Send a one-time password to a user’s phone number via SMS.Parameters
- phoneData (PhoneData) - Phone data containing dial code, ISO code, and phone number
Example
verifyOTP
Verify an SMS OTP code and authenticate the user.Parameters
- token (String) - OTP code entered by user
Example
resendOTP
Resend the SMS OTP.Example
sdk.auth.social
connect
Authenticate with a social provider (Google, Apple, Farcaster).Parameters
- provider (SocialAuthModule.SocialProvider) - The social provider:
SocialAuthModule.SocialProvider.GOOGLESocialAuthModule.SocialProvider.APPLESocialAuthModule.SocialProvider.FARCASTER
Examples
sdk.auth.passkey
signIn
Authenticate with a passkey using the device’s biometric authentication.Example
sdk.auth.externalAuth
signInWithExternalJwt
Sign in using an external JWT token.Parameters
- params (SignInWithExternalJwtParams) - Parameters containing the JWT token