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

Don't delete sessions when handling 401 errors #866

Merged
merged 7 commits into from
May 10, 2024
Merged

Conversation

zzooeeyy
Copy link
Contributor

@zzooeeyy zzooeeyy commented May 8, 2024

WHY are these changes introduced?

Addressing this comment

WHAT is this pull request doing?

When handling 401 errors, invalidate the access token instead of deleting the record

Tested to ensure behaviour is the same as before:

Before (session record deleted) After (accessToken updated to be undefined)
token-deleted.mp4
token-invalidated.mp4

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)
  • Minor: New feature (non-breaking change which adds functionality)
  • Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have used yarn changeset to create a draft changelog entry (do NOT update the CHANGELOG.md files manually)
  • I have added/updated tests for this change
  • I have documented new APIs/updated the documentation for modified APIs (for public APIs)

@zzooeeyy zzooeeyy requested a review from a team as a code owner May 8, 2024 20:37
Copy link
Contributor

@paulomarg paulomarg left a comment

Choose a reason for hiding this comment

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

Looking good!

@zzooeeyy zzooeeyy requested a review from paulomarg May 9, 2024 15:58
@zzooeeyy zzooeeyy requested a review from lizkenyon May 10, 2024 14:27
Copy link
Contributor

@lizkenyon lizkenyon left a comment

Choose a reason for hiding this comment

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

Thank you! :)

@zzooeeyy zzooeeyy enabled auto-merge May 10, 2024 16:18
@zzooeeyy zzooeeyy merged commit 0e791d3 into main May 10, 2024
17 checks passed
@zzooeeyy zzooeeyy deleted the dont-delete-sessions branch May 10, 2024 16:28
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.

3 participants