Re:Startup Engineers and Our Mistakes with MongoDB
by STRML on Wednesday July 19, 2017 @12:58PM
(#14805751)
That's a matter of opinion and implementation. Not everyone uses JWTs. What if you want to invalidate all logged-in tokens for a user? You either need to store a blacklist (that's a relation) or set extremely short expiry times.
Re:Startup Engineers and Our Mistakes with MongoDB
by ZephyrP on Wednesday July 19, 2017 @01:12PM
(#14805900)
i think he is discussing standard cookie session ids here, not access tokens. in many web applications, all the information you need is stored within that token and signed by a server-side secret.
Re:Startup Engineers and Our Mistakes with MongoDB
by pritambaral on Wednesday July 19, 2017 @04:09PM
(#14807468)
Same thing. How do you invalidate a signed cookie?
Aren't those tokens supposed to be stored client side anyway? Aren't those tokens supposed to contain encoded information about the user that you decode server side? Why would you store the users token to begin with?