Skip to content

improved isJWT to decode Base64 strings and verify their types#2595

Open
aryanlmfaoo wants to merge 1 commit intovalidatorjs:masterfrom
aryanlmfaoo:master
Open

improved isJWT to decode Base64 strings and verify their types#2595
aryanlmfaoo wants to merge 1 commit intovalidatorjs:masterfrom
aryanlmfaoo:master

Conversation

@aryanlmfaoo
Copy link

@aryanlmfaoo aryanlmfaoo commented Oct 1, 2025

Improvement(isJWT): improved isJWT to decode the given JWT string, parse them and verify that it is valid JSON (#2511)

Fixed the bug mentioned in #2511, by splitting the JWT string, decoding the base64 strings from it to utf8, parsing them and checking if they are valid JSON.

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)
  • References provided in PR (where applicable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant