sdk.auth.email
Email OTP authentication methods.sendOTP
Send a one-time password (OTP) to a user’s email address for authentication.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
SMS OTP authentication methods.sendOTP
Send a one-time password (OTP) 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
Social authentication methods.connect
Authenticate with a social provider.Parameters
- provider (SocialProvider) - Social provider to authenticate with (
.google,.apple,.farcaster)
Example
sdk.auth.passkey
Passkey authentication methods.signIn
Sign in with a passkey.Example
sdk.auth.externalAuth
External JWT authentication.signInWithExternalJwt
Authenticate using an external JWT token.Parameters
- props (SignInWithExternalJwtParams) - Parameters containing the JWT token