Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: assert type in
decodeJWTPayload
(#1018)
## 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 Co-authored-by: Kang Ming <kang.ming1996@gmail.com>
- Loading branch information