mirror of
https://github.com/supabase/supabase.git
synced 2026-10-11 20:35:07 +03:00
Update auth-password-reset.mdx
Update name of `.exchangeCodeForSession` method.
This commit is contained in:
1 parent
44d59230d5
commit
8a1eeec2f3
1 file changed
+1
-1
@@ -65,7 +65,7 @@ We are using `next` as our query parameter, but this can name whatever you like.
|
||||
The email link you receive will behave like a magic link. When the link is clicked you will be sent to the `redirectTo` URL you specified that points to the path with the exchange code.
|
||||
|
||||
### Exchange authorization code
|
||||
After redirecting to the server page, we need to retrieve the code from the query parameter called `code` and pass it to the `.exchangeAuthCodeForSession` function.
|
||||
After redirecting to the server page, we need to retrieve the code from the query parameter called `code` and pass it to the `.exchangeCodeForSession` function.
|
||||
```ts
|
||||
// api/auth/callback.ts
|
||||
|
||||
|
||||
Reference in new issue
Block a user