Correct me if I am wrong, looks like refresh_token and access_token are stored in localstorage in the browser.
Once gaining access to these refresh_token, an attack like cross-site scripting (XSS) is possible. So the attacker can generate new access_token using refresh_token.
- Is there any option to prevent this kind of attack?