chore(astro): Introduce treatPendingAsSignedOut option to server-side utilities#5757
Merged
LauraBeatris merged 3 commits intomainfrom May 20, 2025
Conversation
🦋 Changeset detectedLatest commit: 2652b0b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 ↗︎
|
treatPendingAsSignedOut to getAuthtreatPendingAsSignedOut to server-side utilities
5caf2fd to
eb1b8fd
Compare
treatPendingAsSignedOut to server-side utilitiestreatPendingAsSignedOut to server-side utilities
eb1b8fd to
1e792af
Compare
1e792af to
15c54b7
Compare
15c54b7 to
239d32e
Compare
239d32e to
57af90b
Compare
57af90b to
17c946c
Compare
17c946c to
00525a0
Compare
00525a0 to
4fd9834
Compare
4fd9834 to
d952599
Compare
treatPendingAsSignedOut to server-side utilitiestreatPendingAsSignedOut option to server-side utilities
3569919 to
bc07bf3
Compare
bc07bf3 to
3e4719f
Compare
brkalow
approved these changes
May 12, 2025
Comment on lines
+47
to
+49
| if (treatPendingAsSignedOut && authObject.sessionStatus === 'pending') { | ||
| return signedOutAuthObject(options); | ||
| } |
Member
There was a problem hiding this comment.
This seems like something that should be handled in @clerk/backend, but we can do it in a followup. Something like:
getAuthObjectFromJwt(jwt)
Member
Author
There was a problem hiding this comment.
Agreed! I'll raise a follow-up PR for it.
3e4719f to
8f4f204
Compare
@clerk/agent-toolkit
@clerk/chrome-extension
@clerk/astro
@clerk/clerk-js
@clerk/dev-cli
@clerk/backend
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/nextjs
@clerk/nuxt
@clerk/localizations
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/tanstack-react-start
@clerk/testing
@clerk/shared
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |
8f4f204 to
2652b0b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Allow passing
treatPendingAsSignedOuttoauth,getAuth, and server-side control components.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change