google / google/GoogleSignIn-iOS

Migrate current VwG refresh logic to `GIDGoogleUser`.

Aperta
#441 0 commenti 0 reazioni 1 assegnatario Rivendicata da @brnnmrls Vedi su GitHub
enhancement
Lingua principale
Objective-C
Stelle
750
Fork
282
Merge medio
2g 15h
PR unite (30g)
9

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.