Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to cached authentication object #94

Open
byohay opened this issue Jan 27, 2022 · 0 comments
Open

Access to cached authentication object #94

byohay opened this issue Jan 27, 2022 · 0 comments

Comments

@byohay
Copy link

byohay commented Jan 27, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant