A dotnet tool
for various development tasks.
You'll need the .Net 6 runtime installed.
jwt-cli
is available from Nuget:
dotnet tool install jwt-cli -g
jwt -?
jwt <jwt>
Where:
<jwt>
is the base-64 encoded JWT token to decode
Example:
jwt "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
Algorithm HS256
Claim [iat] 1516239022
Claim [name] John Doe
Claim [sub] 1234567890
Issued at 2018-01-18 01:30:22
Subject 1234567890
Valid from 0001-01-01 00:00:00
Valid to 0001-01-01 00:00:00
(c) Tony Knight 2023.