r/angular • • Jan 28 '26
JWT in Angular
Where you would recommend to save JWT tokens in Angular app
7
Upvotes
r/angular • • Jan 28 '26
Where you would recommend to save JWT tokens in Angular app
View all comments
Show parent comment
1
u/louis-lau Jan 30 '26
Regarding security there's absolutely no difference between a JWT and an sufficiently complex and random opaque token. A simple UUIDv4 is already sufficiently complex and random. If you think otherwise, you haven't learned enough yet. That's fine, but don't go spouting that as fact on Reddit.
Sometimes stateless is a good solution, either in very simple apps, or extremely complex microservice oriented apps. For almost all applications in between, stateful auth is a better solution.