Json web token(JWT) is self contained. It does not need any storage.
Apr 29, 2016
8
Level 33
Where are JWT Tokens stored?
Hello,
Where are JWT tokens stored?
I've setup JWTAuth (https://github.com/tymondesigns/jwt-auth) but I was wondering where they are stored? The token is not stored in the database so how can my local token being verified?
Thankyou!
Level 29
Yes, client needs to store it, on server storage is not required.
JWT have all the claims in itself and is signed by the server as well. On receipt, server checks for the signature and reads the claims. It does not match it against a stored value. That is the whole point of using JWT against access tokens.
Look at how a JWT is structured.
2 likes
Please or to participate in this conversation.