Skip to content

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

fix: add exchangeCodeForSession to spec

[email protected]ffcfca5f552b
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml
index 780e982f411..b7c659d38f6 100644
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@ -567,6 +567,20 @@ functions:
if (event == 'USER_UPDATED') console.log('USER_UPDATED', session)
})
```
+ - id: exchange-code-for-session
+ title: 'exchangeCodeForSession()'
+ $ref: '@supabase/gotrue-js.GoTrueClient.exchangeCodeForSession'
+ notes: |
+ - Used when `flowType` is set to True in client options.
+ examples:
+ - id: exchange-auth-code
+ name: Exchange Auth Code
+ isSpotlight: true
+ code: |
+ ```js
+ supabase.auth.exchangeCodeForSession('34e770dd-9ff9-416c-87fa-43b31d7ef225')
+ ```
+
- id: mfa-enroll
title: 'mfa.enroll()'
$ref: '@supabase/gotrue-js.GoTrueMFAApi.enroll'