react-native-google-sign-in icon indicating copy to clipboard operation
react-native-google-sign-in copied to clipboard

Refresh accessToken or tokenID

Open nhhoang opened this issue 7 years ago • 2 comments

Hi,

Your plugin works well, thank you very much, however I want to refresh accessToken and tokenID when it expired, how can I do that?

Thanks

nhhoang avatar Apr 04 '17 17:04 nhhoang

Hi!

I really recommend you to read at least the JavaScript parts of the code. It's pretty straightforward and gets you an overview of what the library is capable to do.

You can refresh the token by calling signInSilentlyPromise.

stami avatar Apr 11 '17 17:04 stami

Is there any way to actually return the refreshToken?

It feels like it would return using iOS in GoogleSignIn.ios.js but not in Android. :(

ianataffinity avatar Aug 11 '17 07:08 ianataffinity