-
Notifications
You must be signed in to change notification settings - Fork 405
chore(vue,clerk-react): Update useSession to handle pending session as signed-out
#5525
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: 72bb2be The changes in this PR will be included in the next version bump. This PR includes changesets to release 10 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 ↗︎
|
46462ad to
bf0c85b
Compare
| useAssertWrappedByClerkProvider('useSession'); | ||
|
|
||
| const session = useSessionContext(); | ||
| const optionsContext = useOptionsContext(); |
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 don't think we use OptionsProvider anywhere except clerk-js ui
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.
My bad! I haven't tested this one against ClerkProvider - Fixed here - I think should be fine to use __internal_getOption again
useSession to handle pending session as signed-out useSession to handle pending session as signed-out
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.
This looks good as well, thank you 🫡
f069ba7 to
6ce7f24
Compare
|
I'll rebase this one again after merging the lower branch! Sorry for the temporary messy diff. |
d44cf5f to
2950332
Compare
6ea3516 to
3549107
Compare
3549107 to
7e5c901
Compare
99f56e4 to
72bb2be
Compare
Description
Part of ORGS-621
Allows to pass
treatPendingAsSignedOutas an option touseSession- refer to the following behavior when a session has a pending status:Globally changing the default:
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change