Packagecom.tuarua.firebase.auth
Classpublic class FirebaseUser
InheritanceFirebaseUser Inheritance Object



Public Properties
 PropertyDefined By
  displayName : String
[read-only]
FirebaseUser
  email : String
[read-only]
FirebaseUser
  isAnonymous : Boolean
[read-only]
FirebaseUser
  isEmailVerified : Boolean
[read-only]
FirebaseUser
  phoneNumber : String
[read-only]
FirebaseUser
  photoUrl : String
[read-only]
FirebaseUser
  uid : String
[read-only]
FirebaseUser
Public Methods
 MethodDefined By
  
FirebaseUser(uid:String, displayName:String, email:String, isAnonymous:Boolean, isEmailVerified:Boolean, photoUrl:String, phoneNumber:String)
FirebaseUser
  
getIdToken(forceRefresh:Boolean, listener:Function):void
Retrieves the Firebase authentication token, possibly refreshing it if it has expired.
FirebaseUser
  
link(credential:AuthCredential, listener:Function = null):void
Associates a user account from a third-party identity provider with this user and returns additional identity provider data.
FirebaseUser
  
reauthenticateWithCredential(credential:AuthCredential, listener:Function = null):void
FirebaseUser
  
reauthenticateWithProvider(provider:OAuthProvider, listener:Function = null):void
FirebaseUser
  
reload(listener:Function = null):void
Reloads the user's profile data from the server.
FirebaseUser
  
remove(listener:Function = null):void
Deletes the user account (also signs out the user, if this was the current user).
FirebaseUser
  
sendEmailVerification(listener:Function = null):void
Initiates email verification for the user.
FirebaseUser
  
unlink(provider:String, listener:Function = null):void
Disassociates a user account from a third-party identity provider with this user.
FirebaseUser
  
updateEmail(value:String, listener:Function = null):void
Updates the email address for the user.
FirebaseUser
  
updatePassword(value:String, listener:Function = null):void
Updates the password for the user.
FirebaseUser
  
updateProfile(displayName:String = null, photoUrl:String = null, listener:Function = null):void
Updates the profile for the user.
FirebaseUser
Property Detail
displayNameproperty
displayName:String  [read-only]


Implementation
    public function get displayName():String
emailproperty 
email:String  [read-only]


Implementation
    public function get email():String
isAnonymousproperty 
isAnonymous:Boolean  [read-only]


Implementation
    public function get isAnonymous():Boolean
isEmailVerifiedproperty 
isEmailVerified:Boolean  [read-only]


Implementation
    public function get isEmailVerified():Boolean
phoneNumberproperty 
phoneNumber:String  [read-only]


Implementation
    public function get phoneNumber():String
photoUrlproperty 
photoUrl:String  [read-only]


Implementation
    public function get photoUrl():String
uidproperty 
uid:String  [read-only]


Implementation
    public function get uid():String
Constructor Detail
FirebaseUser()Constructor
public function FirebaseUser(uid:String, displayName:String, email:String, isAnonymous:Boolean, isEmailVerified:Boolean, photoUrl:String, phoneNumber:String)



Parameters
uid:String
 
displayName:String
 
email:String
 
isAnonymous:Boolean
 
isEmailVerified:Boolean
 
photoUrl:String
 
phoneNumber:String
Method Detail
getIdToken()method
public function getIdToken(forceRefresh:Boolean, listener:Function):void

Retrieves the Firebase authentication token, possibly refreshing it if it has expired.

Parameters

forceRefresh:Boolean — Forces a token refresh. Useful if the token becomes invalid for some reason other than an expiration.
 
listener:Function

link()method 
public function link(credential:AuthCredential, listener:Function = null):void

Associates a user account from a third-party identity provider with this user and returns additional identity provider data.

Parameters

credential:AuthCredential
 
listener:Function (default = null) — Optional

reauthenticateWithCredential()method 
public function reauthenticateWithCredential(credential:AuthCredential, listener:Function = null):void

Parameters

credential:AuthCredential
 
listener:Function (default = null)

reauthenticateWithProvider()method 
public function reauthenticateWithProvider(provider:OAuthProvider, listener:Function = null):void

Parameters

provider:OAuthProvider
 
listener:Function (default = null)

reload()method 
public function reload(listener:Function = null):void

Reloads the user's profile data from the server.

Parameters

listener:Function (default = null) — Optional

remove()method 
public function remove(listener:Function = null):void

Deletes the user account (also signs out the user, if this was the current user).

Parameters

listener:Function (default = null) — Optional

sendEmailVerification()method 
public function sendEmailVerification(listener:Function = null):void

Initiates email verification for the user.

Parameters

listener:Function (default = null) — Optional

unlink()method 
public function unlink(provider:String, listener:Function = null):void

Disassociates a user account from a third-party identity provider with this user.

Parameters

provider:String
 
listener:Function (default = null) — Optional

updateEmail()method 
public function updateEmail(value:String, listener:Function = null):void

Updates the email address for the user. On success, the cached user profile data is updated.

Parameters

value:String
 
listener:Function (default = null) — Optional

updatePassword()method 
public function updatePassword(value:String, listener:Function = null):void

Updates the password for the user. On success, the cached user profile data is updated.

Parameters

value:String
 
listener:Function (default = null) — Optional

updateProfile()method 
public function updateProfile(displayName:String = null, photoUrl:String = null, listener:Function = null):void

Updates the profile for the user.

Parameters

displayName:String (default = null) — Optional
 
photoUrl:String (default = null) — Optional
 
listener:Function (default = null) — Optional