PhoneAuthProvider class

Inheritance

Constructors

PhoneAuthProvider([Auth? auth])
Creates a new PhoneAuthProvider with the optional Auth instance in which sign-ins should occur.
factory
PhoneAuthProvider.fromJsObject(PhoneAuthProviderJsImpl jsObject)
Creates a new PhoneAuthProvider from a jsObject.

Properties

hashCode int
The hash code for this object.
no setterinherited
jsObject → PhoneAuthProviderJsImpl
JS object.
finalinherited
providerId String
Provider id.
no setterinherited
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
verifyPhoneNumber(String phoneNumber, ApplicationVerifier<ApplicationVerifierJsImpl> applicationVerifier) Future<String>
Starts a phone number authentication flow by sending a verification code to the given phoneNumber in E.164 format (e.g. +16505550101). Returns an ID that can be passed to PhoneAuthProvider.credential to identify this flow.

Operators

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

Static Properties

PROVIDER_ID String
no setter

Static Methods

credential(String verificationId, String verificationCode) → AuthCredential
Creates a phone auth credential given the verification ID from verifyPhoneNumber and the verificationCode that was sent to the user's mobile device.