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

fix: legacyGuardUserMethod should use $session not $token #365

Merged
merged 1 commit into from
Apr 11, 2023

Conversation

evansims
Copy link
Member

Changes

This PR addresses a bug where legacyGuardUserMethod behaviour mistakenly consumes $token instead of $session for automatic logins during user() calls.

References

Resolves #363

Testing

Tests are passing. No additions were necessary to cover this change.

Contributor Checklist

@evansims evansims added the Scope: Bug Confirmed report of unexpected problems or unintended behavior. label Apr 11, 2023
@evansims evansims requested a review from a team as a code owner April 11, 2023 17:19
@evansims evansims added this to the 7.6.0 milestone Apr 11, 2023
Copy link
Contributor

@Widcket Widcket left a comment

Choose a reason for hiding this comment

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

Can this be unit tested?

@evansims
Copy link
Member Author

Can this be unit tested?

Yup, but I'm still wrapping my head around a reliable testing strategy for this legacy behaviour. It's a little tricky for a few technical reasons, but it's something I'll circle back around too in a few days. For now, I wanted to get this fix out there as a priority, to avoid a potential break in developer integrations.

@evansims evansims merged commit 844b6c9 into main Apr 11, 2023
@evansims evansims deleted the fix/legacy-session-login branch April 11, 2023 17:39
@evansims evansims mentioned this pull request Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Bug Confirmed report of unexpected problems or unintended behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Legacy behavior uses $token instead of $session for login method
2 participants