File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -248,15 +248,21 @@ - (void)signInWithPresentingViewController:(UIViewController *)presentingViewCon
248248- (void )signInWithPresentingViewController : (UIViewController *)presentingViewController
249249 hint : (nullable NSString *)hint
250250 additionalScopes : (nullable NSArray <NSString *> *)additionalScopes
251+ additionalParams : (nullable NSDictionary *)extraParams
251252 completion : (nullable GIDSignInCompletion)completion {
252- GIDSignInInternalOptions *options =
253+ GIDSignInInternalOptions *options =
253254 [GIDSignInInternalOptions defaultOptionsWithConfiguration: _configuration
254255 presentingViewController: presentingViewController
255256 loginHint: hint
256257 addScopesFlow: NO
257258 scopes: additionalScopes
258259 completion: completion];
259- [self signInWithOptions: options];
260+
261+ if (extraParams != nil ) {
262+ options = [options optionsWithExtraParameters: extraParams forContinuation: NO ];
263+ }
264+
265+ [self signInWithOptions: options];
260266}
261267
262268- (void )signInWithPresentingViewController : (UIViewController *)presentingViewController
Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ typedef NS_ERROR_ENUM(kGIDSignInErrorDomain, GIDSignInErrorCode) {
160160- (void )signInWithPresentingViewController:(UIViewController *)presentingViewController
161161 hint:(nullable NSString *)hint
162162 additionalScopes:(nullable NSArray <NSString *> *)additionalScopes
163+ additionalParams:(nullable NSDictionary *)extraParams
163164 completion:
164165 (nullable void (^)(GIDSignInResult *_Nullable signInResult,
165166 NSError *_Nullable error))completion
You can’t perform that action at this time.
0 commit comments