Skip to content

Commit a0d76ae

Browse files
committed
Remove current user requirement for VwG flow.
1 parent 61d3c78 commit a0d76ae

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

GoogleSignIn/Sources/GIDVerifyAccountDetail/Implementations/GIDVerifyAccountDetail.m

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,6 @@ - (void)verifyAccountDetailsInteractivelyWithOptions:(GIDSignInInternalOptions *
149149
return;
150150
}
151151

152-
[self assertValidCurrentUser];
153-
154152
// Explicitly throw exception for missing client ID here. This must come before
155153
// scheme check because schemes rely on reverse client IDs.
156154
[self assertValidParameters:options];
@@ -231,15 +229,6 @@ - (void)processAuthorizationResponse:(OIDAuthorizationResponse *)authorizationRe
231229

232230
#pragma mark - Helpers
233231

234-
// Assert that a current user exists.
235-
- (void)assertValidCurrentUser {
236-
if (!GIDSignIn.sharedInstance.currentUser) {
237-
// NOLINTNEXTLINE(google-objc-avoid-throwing-exception)
238-
[NSException raise:NSInvalidArgumentException
239-
format:@"|currentUser| must be set to verify."];
240-
}
241-
}
242-
243232
// Asserts the parameters being valid.
244233
- (void)assertValidParameters:(GIDSignInInternalOptions *)options {
245234
if (![options.configuration.clientID length]) {

0 commit comments

Comments
 (0)