Skip to content

Reset if pointer is not a number or JWT cannot be decoded #2021

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

Merged
merged 1 commit into from
Mar 25, 2025

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Mar 25, 2025

Description

This can handle more potential issues.

Checklist

Are your changes backwards compatible? Please answer below:

yes

On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below:

7 . Cookies are reset if pointer is not a number or if we fail to decode the JWT.

For frontend changes: Tested on mobile, light and dark mode? Please answer below:

n/a

Did you introduce any new environment variables? If so, call them out explicitly here:

no

@ekzyis ekzyis added the auth label Mar 25, 2025
@ekzyis ekzyis force-pushed the reset-on-pointer-NaN-or-jwt-decode-error branch from 059fd6f to 0b8f463 Compare March 25, 2025 00:21
@@ -91,14 +91,24 @@ function switchSessionCookie (request) {
return request
}

export function checkMultiAuthCookies (req, res) {
async function checkMultiAuthCookies (req, res) {
Copy link
Member Author

Choose a reason for hiding this comment

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

export wasn't needed and was accidentally added back in #1998

@ekzyis ekzyis requested a review from huumn March 25, 2025 00:26
@huumn huumn merged commit 04a4092 into master Mar 25, 2025
6 checks passed
@huumn huumn deleted the reset-on-pointer-NaN-or-jwt-decode-error branch March 25, 2025 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants