Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Update supabase_js_v2.yml to mention the unified type of verification for emails `email`

altryne54f4e3e2b1ee
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml
index 0c6e07c7541..780e982f411 100644
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@ -380,7 +380,7 @@ functions:
title: 'verifyOtp()'
$ref: '@supabase/gotrue-js.GoTrueClient.verifyOtp'
notes: |
- - The `verifyOtp` 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: `signup`, `magiclink`, `recovery`, `invite` or `email_change`.
+ - The `verifyOtp` 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).
- The verification type used should be determined based on the corresponding auth method called before `verifyOtp` to sign up / sign-in a user.
examples:
- id: verify-sms-one-time-password(otp)
@@ -395,7 +395,7 @@ functions:
isSpotlight: false
code: |
```js
- const { data, error } = await supabase.auth.verifyOtp({ email, token, type: 'signup'})
+ const { data, error } = await supabase.auth.verifyOtp({ email, token, type: 'email'})
```
- id: get-session
title: 'getSession()'