Skip to content

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

added in redirect example

Ollie Hallidayec5c4b02b09e
diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml
index 7e220e2dc23..fbbd655ec44 100644
--- a/spec/supabase_js_v2.yml
+++ b/spec/supabase_js_v2.yml
@@ -174,6 +174,23 @@ functions:
}
)
```
+ - id: sign-up-with-redirect.
+ name: Sign up with a redirect
+ isSpotlight: false
+ description: |
+ - See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project.
+ code: |
+ ```js
+ const { data, error } = await supabase.auth.signUp(
+ {
+ email: '[email protected]',
+ password: 'example-password',
+ options: {
+ redirectTo: 'https://example.com/welcome'
+ }
+ }
+ )
+ ```
- id: sign-in-with-password
title: 'signInWithPassword()'
$ref: '@supabase/gotrue-js.GoTrueClient.signInWithPassword'