Skip to content

Malformed token - fixes + tests#283

Merged
dvsekhvalnov merged 1 commit intodvsekhvalnov:masterfrom
pawlos:issue/282
Mar 24, 2026
Merged

Malformed token - fixes + tests#283
dvsekhvalnov merged 1 commit intodvsekhvalnov:masterfrom
pawlos:issue/282

Conversation

@pawlos
Copy link
Copy Markdown
Contributor

@pawlos pawlos commented Mar 23, 2026

Adds checks before accessing properties of the token.

Wasn't sure if all the targets are maintained (judging by the releases - yes) so had to stick to some older C# lang. Let me know if anything needs to be updated.

Fixes #282

@dvsekhvalnov
Copy link
Copy Markdown
Owner

looks good to me, thanks, will squeeze in 5.3.0 that coming out shortly.

@dvsekhvalnov dvsekhvalnov merged commit 5da61ef into dvsekhvalnov:master Mar 24, 2026
21 of 22 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

Development

Successfully merging this pull request may close these issues.

JWT.Decode crashes on malformed tokens (NullRef, InvalidCast)

2 participants