I can make a post call to https://hub.docker.com/v2/users/login/ to get JWT token from docker hub. I want to know how long is it valid. I can’t get any documentation where validity time is specified.
It looks like the token is valid for 5 minutes. Paste it into the debugger on the jwt.io front page and it will display the claims inside the token; “iat” is the issued-at time, “exp” is the expiration time, both are standard
Very old thread, but this may be worth updating for posterity:
It appears that the current JWT’s are long-lived and expire a month after issuance. Pasting my token into jwt.io, I get the following attributes:
"iat": 1584757904, "exp": 1587349904,
which are a month apart.