PhoneAuthProvider class

This class should be used to either create a new Phone credential with an verification ID and SMS code.

Typically this provider will be used when calling verifyPhoneNumber to generate a new PhoneAuthCredential when a SMS code has been sent.

Inheritance

Constructors

PhoneAuthProvider()
Creates a new instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
providerId String
The provider ID.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

PHONE_SIGN_IN_METHOD String
no setter
PROVIDER_ID String
no setter

Static Methods

credential({required String verificationId, required String smsCode}) PhoneAuthCredential
Create a new PhoneAuthCredential from a provided verificationId and smsCode.
credentialFromToken(int token, {String? smsCode}) PhoneAuthCredential
Create a PhoneAuthCredential from an internal token, where the ID relates to a natively stored credential.