Property | Defined 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 |
Method | Defined 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 |
displayName | property |
displayName:String
[read-only] public function get displayName():String
property |
email:String
[read-only] public function get email():String
isAnonymous | property |
isAnonymous:Boolean
[read-only] public function get isAnonymous():Boolean
isEmailVerified | property |
isEmailVerified:Boolean
[read-only] public function get isEmailVerified():Boolean
phoneNumber | property |
phoneNumber:String
[read-only] public function get phoneNumber():String
photoUrl | property |
photoUrl:String
[read-only] public function get photoUrl():String
uid | property |
uid:String
[read-only] public function get uid():String
FirebaseUser | () | Constructor |
public function FirebaseUser(uid:String, displayName:String, email:String, isAnonymous:Boolean, isEmailVerified:Boolean, photoUrl:String, phoneNumber:String)
uid:String | |
displayName:String | |
email:String | |
isAnonymous:Boolean | |
isEmailVerified:Boolean | |
photoUrl:String | |
phoneNumber:String |
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
|