google / google/GoogleSignIn-iOS

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

未关闭
#285 0 条评论 0 个 reaction 已指派 1 人 已被 @mdmathias 认领 在 GitHub 查看
enhancement
主要语言
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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。