You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which is visible when using JS atob() function, but of course when parsing this to a JSON the two sub fields are merged into one.
This has been an issue in one of my recent tests, and it has added significant toil when jwt.io did not catch this mistake. Could you add a warning when catching duplicate properties, or point me in the direction for how to solve it in a PR?
Thanks!
The text was updated successfully, but these errors were encountered:
Hello, Marc! I am one of the newly appointed maintainers for jwt.io and I like this idea as a warning in the decoder :) I'll explore it for the next version of jwt.io
Hey Dan! Thanks for reopening the issue, I tried on my end to see alternatives to JSON.parse but didn't find a way to do it, hopefully you have more insights. Let me know if you need anything!
Sample JWT token:
The payload should be decoded to
which is visible when using JS
atob()
function, but of course when parsing this to a JSON the twosub
fields are merged into one.This has been an issue in one of my recent tests, and it has added significant toil when jwt.io did not catch this mistake. Could you add a warning when catching duplicate properties, or point me in the direction for how to solve it in a PR?
Thanks!
The text was updated successfully, but these errors were encountered: