google / google/GoogleSignIn-iOS

Migrate current VwG refresh logic to `GIDGoogleUser`.

Open
#441 0 comments 0 reactions 1 assignee Claimed by @brnnmrls View on GitHub
enhancement
Dominant language
Objective-C
Stars
750
Forks
282
Avg merge
2d 15h
Merged PRs (30d)
9

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.