Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ + (void)loginIfRequired:(UIScene *)scene
}
}];

if ([self isDeepLink:loginHint host:loginHost] || [self shouldAuthenticateNewUser]) {
if (frontDoorBridgeUrl || [self isDeepLink:loginHost] || [self shouldAuthenticateNewUser]) {
SFUserAccountManagerFailureCallbackBlock failureBlock = ^(SFOAuthInfo *authInfo, NSError *authError) {
[SFSDKCoreLogger e:[self class] format:@"Authentication failed: %@.", [authError localizedDescription]];
};
Expand Down Expand Up @@ -114,8 +114,8 @@ + (void)loginIfRequired:(UIScene *)scene
}
}

+ (BOOL)isDeepLink:(NSString *)hint host:(NSString *)host {
return ([hint length] > 0 && [host length] > 0);
+ (BOOL)isDeepLink:(NSString *)host {
return [host length] > 0;
}

+ (BOOL)shouldAuthenticateNewUser {
Expand Down
Loading