Property

verificationId

string

The phone number authentication operation's verification ID. This can be used along with the verification code to initialize a phone auth credential.

Method

confirm

confirm(verificationCode) returns firebase.Promise containing non-null firebase.auth.UserCredential

Finishes a phone number sign-in, link, or reauthentication, given the code that was sent to the user's mobile device.

Error Codes

auth/invalid-verification-code
Thrown if the verification code is not valid.
auth/missing-verification-code
Thrown if the verification code is missing.

Parameter

verificationCode

string

Returns

non-null firebase.Promise containing non-null firebase.auth.UserCredential