Skip to content

Conversation

@nholden
Copy link
Member

@nholden nholden commented Sep 24, 2025

Today, it's not possible to refresh a token and save it to the session in the onSuccess callback in your callback route. That's because handleAuth calls saveSession with the original token after it calls your onSuccess callback.

This PR allows changes you save to the session in your onSuccess callback to persist after redirecting.

@nholden nholden requested a review from nicknisi September 24, 2025 22:25
@nholden nholden self-assigned this Sep 24, 2025
@nholden nholden requested a review from a team as a code owner September 24, 2025 22:25
@nholden nholden force-pushed the allow-on-success-to-update-session branch from 75c3b47 to c496bd9 Compare September 24, 2025 22:36
Copy link
Member

@nicknisi nicknisi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good! When shipping this, would you consider this to be a minor bump or a patch? I'm leaning towards minor since it technically changes the order of operations + enables new functionality. Thanks for looking into this!

@nholden
Copy link
Member Author

nholden commented Sep 24, 2025

When shipping this, would you consider this to be a minor bump or a patch?

Minor bump makes sense for the reason you mentioned!

@nholden nholden merged commit 89437f4 into main Sep 24, 2025
4 checks passed
@nholden nholden deleted the allow-on-success-to-update-session branch September 24, 2025 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants