verify_otp method takes in different verification types. If a phone number is used, the type can either be sms or phone_change. If an email address is used, the type can be one of the following: email, recovery, invite or email_change (signup and magiclink types are deprecated).verify_otp to sign up / sign-in a user.TokenHash is contained in the email templates and can be used to sign in. You may wish to use the hash with Magic Links for the PKCE flow for Server Side Auth. See this guide for more details.undefined
response = supabase.auth.verify_otp(
{
"email": "email@example.com",
"token": "123456",
"type": "email",
}
)
response = supabase.auth.verify_otp(
{
"phone": "+13334445555",
"token": "123456",
"type": "sms",
}
)
response = supabase.auth.verify_otp(
{
"email": "email@example.com",
"token_hash": "<token-hash>",
"type": "email",
}
)