I\'m using the JWT to protect node js urls https://github.com/auth0/express-jwt
To create a JWT token user session i simply do:
-> auth/signup
2 - do i have to verify() the token everytime a protected url is called? if yes why?
Yes. But "verify" is a little confusing term.
During token verification, no database check of user credentials is needed, because server have to trust received and verified (successfully decrypted) token. No server sessions storage is required to identify user.
You can think of JWT tokens like a simple session info, stored on client in an encrypted form. But if you need to cache more data in a user session info, I think, you still need some sort of sessions storage on a server, rendering JWT idea to almost useless compared to traditional Session ID in cookies.