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: assert type in decodeJWTPayload #1018

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j4w8n
Copy link
Contributor

@j4w8n j4w8n commented Jan 6, 2025

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Type checking and/or linting does not pass for some configurations, per #967 and #1017

What is the new behavior?

We're now asserting that parts[1] is a string (aka isn't undefined), since we know from a previous check that the array length is 3.

Additional context

Fixes #967 and fixes #1017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant