google / google/GoogleSignIn-iOS

Add `-[GIDSignIn addScopes:completion:]`to provide add scopes flow without a presenting view controller or window

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

Descrizione

The main goal of this method will be to create an instance of `GIDSignInInternalOptions` with no presenting window or view controller. Something like:

```
GIDSignInInternalOptions *options =
[GIDSignInInternalOptions defaultOptionsWithConfiguration:configuration
#if TARGET_OS_IOS || TARGET_OS_MACCATALYST
presentingViewController:nil
#elif TARGET_OS_OSX
presentingWindow:nil
#endif // TARGET_OS_IOS || TARGET_OS_MACCATALYST
loginHint:self.currentUser.profile.email
addScopesFlow:YES
completion:completion];
```

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.