Skip to main content

signIn()

Use signIn to sign in users using email and password, passwordless (email or sms) or an external provider. signIn can be used in various ways depending on the parameters.

signIn({ email, password })

Parameters


params required SignInParams


Examples

Sign in with email and password

signIn({ email, password })

Sign in with an external provider (e.g: Google or Facebook)

signIn({ provider })
signIn({ email }) // [step 1/2] Passwordless sign in with Email (Magic Link)
signIn({ email, otp }) // [step 2/2] Finish passwordless sign in with email (OTP)

Passwordless sign in with SMS

signIn({ phoneNumber }) // [step 1/2] Passwordless sign in with SMS
signIn({ phoneNumber, otp }) // [step 2/2] Finish passwordless sign in with SMS (OTP)