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

Migrate current VwG refresh logic to GIDGoogleUser. #441

Open
brnnmrls opened this issue Jun 12, 2024 · 0 comments
Open

Migrate current VwG refresh logic to GIDGoogleUser. #441

brnnmrls opened this issue Jun 12, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@brnnmrls
Copy link
Member

GSI provides a mechanism for developers to restore previous sign-ins. The flow attempts to use authorizations stored on the device and refresh relevant tokens if they're expired. The sign-in flow uses GIDGoogleUser for token refreshing. Ideally, the VwG flow wants to use GIDGoogleUser for token refreshing to make it easier on developers since GSI currently attaches authorization state to the user vended by the library and saves the necessary tokens so that the authorization state can be restored between application runs.

To save some time an alternative temporary solution was implemented by handing back to requesting parties an expiration date, access and refresh tokens, and exposing an API allowing developers refresh their tokens.

@brnnmrls brnnmrls added the enhancement New feature or request label Jun 12, 2024
@brnnmrls brnnmrls self-assigned this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant