Skip to content

Commit ec5c4b0

Browse files
committed
added in redirect example
1 parent 1320222 commit ec5c4b0

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

spec/supabase_js_v2.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,23 @@ functions:
174174
}
175175
)
176176
```
177+
- id: sign-up-with-redirect.
178+
name: Sign up with a redirect
179+
isSpotlight: false
180+
description: |
181+
- See [redirect URLs and wildcards](/docs/guides/auth/overview#redirect-urls-and-wildcards) to add additional redirect URLs to your project.
182+
code: |
183+
```js
184+
const { data, error } = await supabase.auth.signUp(
185+
{
186+
email: 'example@email.com',
187+
password: 'example-password',
188+
options: {
189+
redirectTo: 'https://example.com/welcome'
190+
}
191+
}
192+
)
193+
```
177194
- id: sign-in-with-password
178195
title: 'signInWithPassword()'
179196
$ref: '@supabase/gotrue-js.GoTrueClient.signInWithPassword'

0 commit comments

Comments
 (0)