Skip to content

Commit 269c593

Browse files
authored
docs: Update session-access.md (#1035)
Update docs to reflect breaking changes in `signUp` function's now-removed third parameter.
1 parent 82411b5 commit 269c593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/guide/application-side/session-access.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,10 @@ await signUp(credentials, { callbackUrl: '/profile', redirect: true })
161161
await signUp(credentials, { callbackUrl: 'https://external.example.com', redirect: true, external: true })
162162

163163
// Trigger a sign-up without auto sign-in and redirect to the home page within the application
164-
await signUp(credentials, { callbackUrl: '/', redirect: true }, { preventLoginFlow: true })
164+
await signUp(credentials, { callbackUrl: '/', redirect: true, preventLoginFlow: true })
165165

166166
// Trigger a sign-up without auto sign-in and doesn't redirect anywhere
167-
await signUp(credentials, undefined, { preventLoginFlow: true })
167+
await signUp(credentials, { preventLoginFlow: true })
168168
```
169169

170170
:::info

0 commit comments

Comments
 (0)