GoogleSignIn-iOS icon indicating copy to clipboard operation
GoogleSignIn-iOS copied to clipboard

Access to cached authentication object

Open byohay opened this issue 4 years ago • 0 comments

In our apps we call the method restorePreviousSignInWithCallback: every startup. This is recommended by the documentation, and we do this in order to be informed that the user's token was revoked. restorePreviousSignInWithCallback: can fail for many reasons, for example if there was a failure to refresh the token. In most of these cases, we would still like to get the cached token, even if it expired or about to expire. However currently there is no way to get the token if an error occurred during restorePreviousSignInWithCallback:.

One solution could be to make restorePreviousSignInNoRefresh public in some form.

byohay avatar Jan 27 '22 13:01 byohay