PhoneAuthProvider class Null safety

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. [...]
read-only, inherited
providerId String
The provider ID.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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
read-only
PROVIDER_ID String
read-only

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.