What are best practices for storing and refreshing OAuth 2.0 tokens in a SPA?
#1
I'm implementing user authentication for a new internal web application that needs to integrate with our existing corporate identity provider using OAuth 2.0. While I understand the basic authorization code flow, I'm confused about the best practices for securely storing and refreshing access tokens on the client side, especially in a single-page application where traditional server-side sessions aren't used. For developers who have built secure SPA authentication, what patterns or libraries do you recommend for managing the token lifecycle and mitigating common security risks like CSRF or token leakage?
Reply


[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Forum Jump: