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 @@ -252,15 +252,21 @@ - (void)signInWithPresentingViewController:(UIViewController *)presentingViewCon
252252- (void )signInWithPresentingViewController : (UIViewController *)presentingViewController
253253 hint : (nullable NSString *)hint
254254 additionalScopes : (nullable NSArray <NSString *> *)additionalScopes
255+ additionalParams : (nullable NSDictionary *)extraParams
255256 completion : (nullable GIDSignInCompletion)completion {
256- GIDSignInInternalOptions *options =
257+ GIDSignInInternalOptions *options =
257258 [GIDSignInInternalOptions defaultOptionsWithConfiguration: _configuration
258259 presentingViewController: presentingViewController
259260 loginHint: hint
260261 addScopesFlow: NO
261262 scopes: additionalScopes
262263 completion: completion];
263- [self signInWithOptions: options];
264+
265+ if (extraParams != nil ) {
266+ options = [options optionsWithExtraParameters: extraParams forContinuation: NO ];
267+ }
268+
269+ [self signInWithOptions: options];
264270}
265271
266272- (void )signInWithPresentingViewController : (UIViewController *)presentingViewController
Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ typedef NS_ERROR_ENUM(kGIDSignInErrorDomain, GIDSignInErrorCode) {
162162- (void )signInWithPresentingViewController:(UIViewController *)presentingViewController
163163 hint:(nullable NSString *)hint
164164 additionalScopes:(nullable NSArray <NSString *> *)additionalScopes
165+ additionalParams:(nullable NSDictionary *)extraParams
165166 completion:
166167 (nullable void (^)(GIDSignInResult *_Nullable signInResult,
167168 NSError *_Nullable error))completion
You can’t perform that action at this time.
0 commit comments