DEV Community

Discussion on: How to Handle sessoions in an angular app

Collapse
 
brandinchiu profile image
Brandin Chiu

I can't personally think of a reason why using a JWT for a session would be objectively wrong.

JWT might be overkill a bit if you don't plan on sharing the session with another application or service, but I wouldn't consider it wrong.

Any encoded identifier that your application can use to determine who a "signed-in" user is should be fine. JWT falls in that group.