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

Merged
merged 3 commits into from
Jan 29, 2025

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

@ganeshrvel
Copy link

Any updates on this PR? This bug is causing issues with my typecheck pipleline

@kangmingtay kangmingtay reopened this Jan 29, 2025
@kangmingtay
Copy link
Member

closed and reopen to retrigger CI checks 🤷

@kangmingtay kangmingtay merged commit 3d80039 into supabase:master Jan 29, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants