Localstorage vs cookies for OAuth2 in HTML5 Web App
It looks like you’re using the Resource Owner Password Credentials OAuth 2.0 flow e.g. submitting username/pass to get back both an access token and refresh token. The access token CAN be exposed in JavaScript, the risks of the access token being exposed somehow are mitigated by its short lifetime. The refresh token SHOULD NOT be … Read more