google / google/GoogleSignIn-iOS
Add `-[GIDSignIn addScopes:completion:]`to provide add scopes flow without a presenting view controller or window
- 主要语言
- Objective-C
- 星标
- 750
- 派生
- 282
- 平均合并
- 2 天 15 小时
- 30 天内合并 PR
- 9
描述
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];
```
贡献指南
评估
这个 Issue 还没有评估数据。