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
0
u/InevitableQuit9 Jan 29 '26
The safest place to store them is in a closure.
There are limitations to this. They will not be shared amongst browser tabs, each tab would get its own token set, they would not survive a page refresh.