Property | Defined By | ||
---|---|---|---|
currentUser : FirebaseUser [read-only] Synchronously gets the cached current user, or null if there is none. | Auth | ||
languageCode : String The current user language code. | Auth |
Method | Defined By | ||
---|---|---|---|
createUserWithEmailAndPassword(email:String, password:String, listener:Function = null):void Creates and, on success, signs in a user with the given email address and password. | Auth | ||
dispose():void [static] Disposes the ANE | Auth | ||
sendPasswordResetEmail(email:String, listener:Function = null):void Initiates a password reset for the given email address. | Auth | ||
signInAnonymously(listener:Function = null):void Asynchronously creates and becomes an anonymous user. | Auth | ||
signInWithCredential(credential:AuthCredential, listener:Function = null):void Asynchronously signs in to Firebase with the given 3rd-party credentials (e.g. | Auth | ||
signInWithCustomToken(token:String, listener:Function = null):void Asynchronously signs in to Firebase with the given Auth token. | Auth | ||
signInWithProvider(provider:OAuthProvider, listener:Function = null):void | Auth | ||
signOut():void Signs out the current user. | Auth | ||
verifyPhoneNumber(phoneNumber:String, listener:Function):void
Starts the phone number authentication flow by sending a verifcation code to the
specified phone number. | Auth |
currentUser | property |
currentUser:FirebaseUser
[read-only] Synchronously gets the cached current user, or null if there is none.
public function get currentUser():FirebaseUser
languageCode | property |
languageCode:String
The current user language code.
public function get languageCode():String
public function set languageCode(value:String):void
createUserWithEmailAndPassword | () | method |
public function createUserWithEmailAndPassword(email:String, password:String, listener:Function = null):void
Creates and, on success, signs in a user with the given email address and password.
Parameters
email:String | |
password:String | |
listener:Function (default = null ) — Optional Function to be called on completion.
The function is expected to have the following signature:
function callback(error:AuthError):void { } |
dispose | () | method |
public static function dispose():void
Disposes the ANE
sendPasswordResetEmail | () | method |
public function sendPasswordResetEmail(email:String, listener:Function = null):void
Initiates a password reset for the given email address.
Parameters
email:String | |
listener:Function (default = null ) — Optional Function to be called on completion.
The function is expected to have the following signature:
function callback(error:AuthError):void { } |
signInAnonymously | () | method |
public function signInAnonymously(listener:Function = null):void
Asynchronously creates and becomes an anonymous user.
Parameters
listener:Function (default = null ) — Optional Function to be called on completion.
The function is expected to have the following signature:
function callback(error:AuthError):void { } |
signInWithCredential | () | method |
public function signInWithCredential(credential:AuthCredential, listener:Function = null):void
Asynchronously signs in to Firebase with the given 3rd-party credentials (e.g. a Facebook login Access Token, a Google ID Token/Access Token pair, etc.) and returns additional identity provider data.
Parameters
credential:AuthCredential | |
listener:Function (default = null ) — Optional Function to be called on completion.
The function is expected to have the following signature:
function callback(error:AuthError):void { } |
signInWithCustomToken | () | method |
public function signInWithCustomToken(token:String, listener:Function = null):void
Asynchronously signs in to Firebase with the given Auth token.
Parameters
token:String — A self-signed custom auth token.
| |
listener:Function (default = null ) — Optional Function to be called on completion.
The function is expected to have the following signature:
function callback(error:AuthError):void { } |
signInWithProvider | () | method |
public function signInWithProvider(provider:OAuthProvider, listener:Function = null):void
Parameters
provider:OAuthProvider | |
listener:Function (default = null )
|
signOut | () | method |
public function signOut():void
Signs out the current user.
verifyPhoneNumber | () | method |
public function verifyPhoneNumber(phoneNumber:String, listener:Function):void
Starts the phone number authentication flow by sending a verifcation code to the specified phone number.
Parameters
phoneNumber:String — The phone number to be verified.
| |
listener:Function — Optional Function to be called on completion.
The function is expected to have the following signature:
function callback(error:AuthError):void { } |