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

This commit is contained in:
Salakar 2018-05-12 22:58:35 +01:00
parent cf25ba23e5
commit f81e50ccb8
1 changed files with 6 additions and 0 deletions

View File

@ -1129,7 +1129,13 @@ class RNFirebaseAuth extends ReactContextBaseJavaModule {
} }
return PhoneAuthProvider.getCredential(authToken, authSecret); return PhoneAuthProvider.getCredential(authToken, authSecret);
case "password": case "password":
// authToken = email
// authSecret = password
return EmailAuthProvider.getCredential(authToken, authSecret); return EmailAuthProvider.getCredential(authToken, authSecret);
case "emailLink":
// authToken = email
// authSecret = link
return EmailAuthProvider.getCredentialWithLink(authToken, authSecret);
default: default:
return null; return null;
} }