Skip to content
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

[future/auth] use query params on success too #3654

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benjamine
Copy link

@benjamine benjamine commented Feb 2, 2024

bringing back this behavior from v2.24.22

so state query param is also copied from query params on success step too.

the regression observed is that ?state= is empty when doing the final redirect after success (at least tested with google adapter) as state arrives as a query param to the auth handler.

link to discord with more details: https://discord.com/channels/983865673656705025/1082462837710012508/1203065839591489566

bringing back this behavior from v2.24.22
https://github.com/sst/sst/blob/766436883ee7b7b23637cf9d3effd08a07b861fe/packages/sst/src/node/future/auth/handler.ts#L300
so `state` query param is also copied from query params on success step too.
Copy link

changeset-bot bot commented Feb 2, 2024

⚠️ No Changeset found

Latest commit: 092d496

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@benjamine benjamine changed the title use query params on success too [future/auth] use query params on success too Feb 2, 2024
@jayair
Copy link
Contributor

jayair commented Feb 3, 2024

Taking a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants