Skip to content

Commit

Permalink
Fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
toshi0383 committed Jan 25, 2023
1 parent b0543cd commit 76acf9c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 33 deletions.
3 changes: 2 additions & 1 deletion GoogleSignIn/Sources/GIDGoogleUser.m
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,8 @@ - (GIDConfiguration *)configuration {
_cachedConfiguration = [[GIDConfiguration alloc] initWithClientID:clientID
serverClientID:serverClientID
hostedDomain:[self hostedDomain]
openIDRealm:openIDRealm];
openIDRealm:openIDRealm
nonce:nil];
};
}
return _cachedConfiguration;
Expand Down
35 changes: 3 additions & 32 deletions GoogleSignIn/Sources/GIDSignIn.m
Original file line number Diff line number Diff line change
Expand Up @@ -269,30 +269,8 @@ - (void)signInWithPresentingViewController:(UIViewController *)presentingViewCon
- (void)addScopes:(NSArray<NSString *> *)scopes
presentingViewController:(UIViewController *)presentingViewController
completion:(nullable GIDSignInCompletion)completion {
<<<<<<< HEAD
// A currentUser must be available in order to complete this flow.
if (!self.currentUser) {
// No currentUser is set, notify callback of failure.
NSError *error = [NSError errorWithDomain:kGIDSignInErrorDomain
code:kGIDSignInErrorCodeNoCurrentUser
userInfo:nil];
if (completion) {
dispatch_async(dispatch_get_main_queue(), ^{
completion(nil, error);
});
}
return;
}

GIDConfiguration *configuration =
[[GIDConfiguration alloc] initWithClientID:self.currentUser.authentication.clientID
serverClientID:self.currentUser.serverClientID
hostedDomain:self.currentUser.hostedDomain
openIDRealm:self.currentUser.openIDRealm
nonce:nil];
=======
GIDConfiguration *configuration = self.currentUser.configuration;
>>>>>>> upstream/main
GIDSignInInternalOptions *options =
[GIDSignInInternalOptions defaultOptionsWithConfiguration:configuration
presentingViewController:presentingViewController
Expand Down Expand Up @@ -593,16 +571,9 @@ - (void)authenticateInteractivelyWithOptions:(GIDSignInInternalOptions *)options

#if TARGET_OS_IOS && !TARGET_OS_MACCATALYST
[additionalParameters addEntriesFromDictionary:
<<<<<<< HEAD
[GIDAuthentication parametersWithParameters:options.extraParams
emmSupport:emmSupport
isPasscodeInfoRequired:NO]];

=======
[GIDEMMSupport parametersWithParameters:options.extraParams
emmSupport:emmSupport
isPasscodeInfoRequired:NO]];
>>>>>>> upstream/main
[GIDEMMSupport parametersWithParameters:options.extraParams
emmSupport:emmSupport
isPasscodeInfoRequired:NO]];
#elif TARGET_OS_OSX || TARGET_OS_MACCATALYST
[additionalParameters addEntriesFromDictionary:options.extraParams];
#endif // TARGET_OS_OSX || TARGET_OS_MACCATALYST
Expand Down

0 comments on commit 76acf9c

Please sign in to comment.