-
Notifications
You must be signed in to change notification settings - Fork 405
chore(shared,vue,nextjs,astro,clerk-react): Update useAuth to handle pending session as signed-out
#5507
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 2950332 The changes in this PR will be included in the next version bump. This PR includes changesets to release 19 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
useAuth to handle pending session as signed-outuseAuth to handle pending session as signed-out
4a9be7a to
ea4d622
Compare
useAuth to handle pending session as signed-outuseAuth to handle pending session as signed-out
useAuth to handle pending session as signed-outuseAuth to handle pending session as signed-out
396134b to
ff18c63
Compare
1f6a451 to
85dec76
Compare
wobsoriano
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good on the Vue and Astro side. Thanks for abstracting the auth state logic away 🙇🏼
f069ba7 to
6ce7f24
Compare
| '@clerk/vue': patch | ||
| --- | ||
|
|
||
| Update `useAuth` to handle pending sessions as signed-out by default, with opt-out via `useAuth({ treatPendingAsSignedOut: false })` or `<ClerkProvider treatPendingAsSignedOut={false} />` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll spin up different changeset per package since <ClerkProvider treatPendingAsSignedOut={false} /> is specific to React
d44cf5f to
2950332
Compare
Description
Part of ORGS-621
Allows to pass
treatPendingAsSignedOutas an option touseAuth- refer to the following behavior when a session has a pending status:Globally changing the default:
Example from Nuxt route middleware:
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change