Update auth-password-reset.mdx

Update name of `.exchangeCodeForSession` method.
This commit is contained in:
Jerome Dahdah authored and GitHub committed 2023-05-31 15:02:39 +02:00
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