Home > @firebase/auth > PhoneAuthProvider > credentialFromResult
PhoneAuthProvider.credentialFromResult() method
Generates an AuthCredential from a UserCredential.
Signature:
static credentialFromResult(userCredential: UserCredential): AuthCredential | null;
Parameters
Parameter | Type | Description |
---|---|---|
userCredential | UserCredential |
Returns:
AuthCredential | null