react-oauth
react-oauth copied to clipboard
Page refresh removes access_token from gapi api calls.
I use gapi and when I refresh the page future calls to gapi will not have the authorisation token to it. They all have right after I authenticate, but if I refresh, it's gone. I already tried setting the token after login, no luck.
window.gapi.client.setToken({ access_token: <ACCESS_TOKEN> })
window.gapi.auth.setToken({
access_token: "YOUR_TOKEN_HERE"
});
Any clues @MomenSherif?