[ios][auth] add `emailLink` support for internal getCredentialForProvider util
This commit is contained in:
parent
f81e50ccb8
commit
45bea847b4
|
@ -1058,6 +1058,8 @@ RCT_EXPORT_METHOD(fetchSignInMethodsForEmail:
|
|||
credential = [FIRGoogleAuthProvider credentialWithIDToken:authToken accessToken:authTokenSecret];
|
||||
} else if ([provider compare:@"password" options:NSCaseInsensitiveSearch] == NSOrderedSame) {
|
||||
credential = [FIREmailAuthProvider credentialWithEmail:authToken password:authTokenSecret];
|
||||
} else if ([provider compare:@"emailLink" options:NSCaseInsensitiveSearch] == NSOrderedSame) {
|
||||
credential = [FIREmailAuthProvider credentialWithEmail:authToken link:authTokenSecret];
|
||||
} else if ([provider compare:@"github.com" options:NSCaseInsensitiveSearch] == NSOrderedSame) {
|
||||
credential = [FIRGitHubAuthProvider credentialWithToken:authToken];
|
||||
} else if ([provider compare:@"phone" options:NSCaseInsensitiveSearch] == NSOrderedSame) {
|
||||
|
|
Loading…
Reference in New Issue