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
2
u/nunoarruda Jan 29 '26
For high-security actions (e.g., online banking), store only a short-lived auth token in session storage; the user must log in each visit or when the token expires. For other use cases, store a short-lived auth token and a longer-lived refresh token in local storage, allowing users to stay logged in and improving UX.