google / google/GoogleSignIn-iOS

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

Đang mở
#285 0 bình luận 0 reaction 1 người được giao Được @mdmathias nhận Xem trên GitHub
enhancement
Ngôn ngữ chính
Objective-C
Star
750
Fork
282
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
9

Mô tả

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];
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.