Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Clone the JWT session before overriding the expiration #73

Merged
merged 1 commit into from
Jan 14, 2021

Conversation

paulomarg
Copy link
Contributor

WHY are these changes introduced?

My previous fix was faulty in that it was overriding the expiration of the OAuth session before cloning it, which meant that the JWT session was also expiring right away.

WHAT is this pull request doing?

Cloning the JWT session prior to overwriting the expiration of the cookie one, so the expiration date is preserved.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)

@paulomarg paulomarg requested a review from a team as a code owner January 14, 2021 16:09
src/auth/oauth/oauth.ts Outdated Show resolved Hide resolved
@paulomarg paulomarg merged commit 7dc8f96 into main Jan 14, 2021
@paulomarg paulomarg deleted the fix_session_expiration_again branch January 14, 2021 16:27
@paulomarg paulomarg temporarily deployed to production January 14, 2021 16:30 Inactive
@paulomarg paulomarg temporarily deployed to production January 27, 2021 19:19 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants