Skip to content

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

chore: update name of token hash example

[email protected]8420ea41b252
diff --git a/spec/examples/examples.yml b/spec/examples/examples.yml
index bd034b94223..4960b1f29a5 100644
--- a/spec/examples/examples.yml
+++ b/spec/examples/examples.yml
@@ -296,6 +296,13 @@ functions:
```js
const { data, error } = await supabase.auth.verifyOtp({ email, token, type: 'signup'})
```
+ - id: verify-email-auth(tokenhash)
+ name: Verify Email Auth (Token Hash)
+ isSpotlight: false
+ code: |
+ ```js
+ const { data, error } = await supabase.auth.verifyOtp({ token_hash: tokenHash, type: 'email'})
+ ```
- id: auth.getSession()
title: 'getSession()'
$ref: '@supabase/gotrue-js.GoTrueClient.getSession'
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml
index 01e8f547f34..601b892c97b 100644
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@ -431,12 +431,12 @@ functions:
```js
const { data, error } = await supabase.auth.verifyOtp({ email, token, type: 'email'})
```
- - id: verify-signup-one-time-password(otp)
- name: Verify Signup One-Time Password (OTP)
+ - id: verify-email-auth(tokenhash)
+ name: Verify Email Auth (Token Hash)
isSpotlight: false
code: |
```js
- const { data, error } = await supabase.auth.verifyOtp({ tokenHash, type: 'email'})
+ const { data, error } = await supabase.auth.verifyOtp({ token_hash: tokenHash, type: 'email'})
```
- id: get-session
title: 'getSession()'