using access token returned by OAuth2 instead of JWT

📰 Reddit r/webdev

Can I use the access token returned by OAuth2 instead of issuing my own JWT? I understand OAuth2 access tokens can last longer than typical short-lived JWTs, and that’s what I need for my app. If I store the OAuth2 token in the frontend (e.g., localStorage) and remove it on logout, is this considered safe and a good practice, or is there a better approach? submitted by /u/NoTutor4458

Published 19 Apr 2026
Read full article → ← Back to Reads