[ios][auth] add `emailLink` support for internal getCredentialForProvider util

This commit is contained in:
Salakar 2018-05-12 22:58:47 +01:00
parent f81e50ccb8
commit 45bea847b4
1 changed files with 2 additions and 0 deletions

View File

@ -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) {