In order to secure my routes, I'm using Google OAuth to allow my users to sign-in and identify themselves for my backend.
The issued id token is then sent on every request to a protected endpoint on my backend, and is verified by what's explained in this article: https://developers.google.com/identity/sign-in/web/backend-auth
Now the only issue is, id tokens expire after a set amount of time. The only way to retrieve new id tokens is by using the refresh token I believe. If so, how can I safely store the refresh token on the client so I can retrieve new id tokens?
Edit: To clarify, I'm using the authorization code flow