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
I'm using Version 2.0-preview.8
The decoding of my JWT token sends me an error :
It's working when i decode it on jwt.io
This might be related to "iat" and "exp" being encoded in miliseconds, not seconds (ex :1734530610991).
How to reproduce it (as minimally and precisely as possible)
Open DevToys Version 2.0-preview.8
Go to "Encodeur JWT / Décodeur"
Paste this JWT : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzc29waGllIiwidXVpZCI6ImEzYWJjYjAyLTUxNzMtNGFhZi1hYTQ1LTgwZWNlYjgzZjQ0NSIsImlhdCI6MTczNDQ0NDIxMDk5MSwiZXhwIjoxNzM0NTMwNjEwOTkxLCJoYXNfd2Vic2l0ZSI6dHJ1ZSwiaGFzX2VyZXAiOmZhbHNlLCJoYXNfYm9va2luZ2VuZ2luZSI6ZmFsc2UsImhhc193aWRnZXQiOmZhbHNlLCJoYXNfb2RpdG9yIjpmYWxzZX0.rSGdAmojDGIKOW6iTN40dh_5Rw9cJKzJ7wJaJ-wNn2k
Expected behavior
I guess the best behavior in this case should be to handle displaying the raw decoded content without parsing the date ?
Screenshots
No response
Workaround
No response
Affected platforms
Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
Version 2.0-preview.8
Relevant Assets/Logs
2024-12-17T15:09:12.4904525+01:00 Error [DevToys.Tools.Tools.EncodersDecoders.JsonWebToken.JsonWebTokenDecoderGuiTool] [0] Invalid token detected
Valid values are between -62135596800 and 253402300799, inclusive. (Parameter 'seconds')
System.ArgumentOutOfRangeException: Valid values are between -62135596800 and 253402300799, inclusive. (Parameter 'seconds')
at System.DateTimeOffset.FromUnixTimeSeconds(Int64 seconds)
at DevToys.Tools.Helpers.JsonWebToken.JsonWebTokenDecoderHelper.ProcessClaims(ReadOnlySpan`1 data, IEnumerable`1 claims) in E:\Publish\submodules\DevToys.Tools\src\DevToys.Tools\Helpers\JsonWebToken\JsonWebTokenDecoderHelper.cs:line 207
at DevToys.Tools.Helpers.JsonWebToken.JsonWebTokenDecoderHelper.DecodeTokenAsync(DecoderParameters decodeParameters, TokenParameters tokenParameters, ILogger logger, CancellationToken cancellationToken) in E:\Publish\submodules\DevToys.Tools\src\DevToys.Tools\Helpers\JsonWebToken\JsonWebTokenDecoderHelper.cs:line 92
The text was updated successfully, but these errors were encountered:
Current behavior
I'm using Version 2.0-preview.8
The decoding of my JWT token sends me an error :
It's working when i decode it on jwt.io
This might be related to "iat" and "exp" being encoded in miliseconds, not seconds (ex :
1734530610991
).How to reproduce it (as minimally and precisely as possible)
eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJzc29waGllIiwidXVpZCI6ImEzYWJjYjAyLTUxNzMtNGFhZi1hYTQ1LTgwZWNlYjgzZjQ0NSIsImlhdCI6MTczNDQ0NDIxMDk5MSwiZXhwIjoxNzM0NTMwNjEwOTkxLCJoYXNfd2Vic2l0ZSI6dHJ1ZSwiaGFzX2VyZXAiOmZhbHNlLCJoYXNfYm9va2luZ2VuZ2luZSI6ZmFsc2UsImhhc193aWRnZXQiOmZhbHNlLCJoYXNfb2RpdG9yIjpmYWxzZX0.rSGdAmojDGIKOW6iTN40dh_5Rw9cJKzJ7wJaJ-wNn2k
Expected behavior
I guess the best behavior in this case should be to handle displaying the raw decoded content without parsing the date ?
Screenshots
No response
Workaround
No response
Affected platforms
Windows
Affected DevToys kind
DevToys (app with GUI)
DevToys Version
Version 2.0-preview.8
Relevant Assets/Logs
The text was updated successfully, but these errors were encountered: