react-oauth icon indicating copy to clipboard operation
react-oauth copied to clipboard

Page refresh removes access_token from gapi api calls.

Open matheusbaumgart opened this issue 1 year ago • 1 comments

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?

matheusbaumgart avatar Jan 03 '24 10:01 matheusbaumgart