|
LuxChat
2.0
Instant messenger for iOS
|
Represents a user. More...
#import <FIRUser.h>
Instance Methods | |
| (nullable instancetype) | - NS_UNAVAILABLE |
| (void) | - updateEmail:completion: |
| Updates the email address for the user. On success, the cached user profile data is updated. More... | |
| (void) | - updatePassword:completion: |
| Updates the password for the user. On success, the cached user profile data is updated. More... | |
| (FIRUserProfileChangeRequest *) | - profileChangeRequest |
| Creates an object which may be used to change the user's profile data. More... | |
| (void) | - reloadWithCompletion: |
| Reloads the user's profile data from the server. More... | |
| (void) | - reauthenticateWithCredential:completion: |
| Renews the user's authentication tokens by validating a fresh set of credentials supplied by the user. More... | |
| (void) | - getTokenWithCompletion: |
| Retrieves the Firebase authentication token, possibly refreshing it if it has expired. More... | |
| (void) | - getTokenForcingRefresh:completion: |
| Retrieves the Firebase authentication token, possibly refreshing it if it has expired. More... | |
| (void) | - linkWithCredential:completion: |
| Associates a user account from a third-party identity provider with this user. More... | |
| (void) | - unlinkFromProvider:completion: |
| Disassociates a user account from a third-party identity provider with this user. More... | |
| (void) | - sendEmailVerificationWithCompletion: |
| Initiates email verification for the user. More... | |
| (void) | - deleteWithCompletion: |
| Deletes the user account (also signs out the user, if this was the current user). More... | |
Properties | |
| BOOL | anonymous |
| Indicates the user represents an anonymous user. | |
| BOOL | emailVerified |
| Indicates the email address associated with this user has been verified. | |
| NSString * | refreshToken |
| A refresh token; useful for obtaining new access tokens independently. More... | |
| NSArray< id< FIRUserInfo > > * | providerData |
| Profile data for each identity provider, if any. More... | |
Properties inherited from <FIRUserInfo> | |
| NSString * | providerID |
| The provider identifier. | |
| NSString * | uid |
| The provider's user ID for the user. | |
| NSString * | displayName |
| The name of the user. | |
| NSURL * | photoURL |
| The URL of the user's profile photo. | |
| NSString * | |
| The user's email address. | |
Represents a user.
| - deleteWithCompletion: | (nullable FIRUserProfileChangeCallback) | completion |
Deletes the user account (also signs out the user, if this was the current user).
| completion | Optionally; the block invoked when the request to delete the account is complete, or fails. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeRequiresRecentLogin - Updating email is a security sensitive operation that requires a recent login from the user. This error indicates the user has not signed in recently enough. To resolve, reauthenticate the user by invoking reauthenticateWithCredential:completion: on FIRUser.FIRAuthErrors for a list of error codes that are common to all FIRUser operations. | - getTokenForcingRefresh: | (BOOL) | forceRefresh | |
| completion: | (nullable FIRAuthTokenCallback) | completion | |
Retrieves the Firebase authentication token, possibly refreshing it if it has expired.
| forceRefresh | Forces a token refresh. Useful if the token becomes invalid for some reason other than an expiration. |
| completion | Optionally; the block invoked when the token is available. Invoked asynchronously on the main thread in the future. |
forceRefresh is YES. FIRAuthErrors for a list of error codes that are common to all API methods. | - getTokenWithCompletion: | (nullable FIRAuthTokenCallback) | completion |
Retrieves the Firebase authentication token, possibly refreshing it if it has expired.
| completion | Optionally; the block invoked when the token is available. Invoked asynchronously on the main thread in the future. |
FIRAuthErrors for a list of error codes that are common to all API methods. | - linkWithCredential: | (FIRAuthCredential *) | credential | |
| completion: | (nullable FIRAuthResultCallback) | completion | |
Associates a user account from a third-party identity provider with this user.
| credential | The credential for the identity provider. |
| completion | Optionally; the block invoked when the unlinking is complete, or fails. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeProviderAlreadyLinked - Indicates an attempt to link a provider of a type already linked to this account.FIRAuthErrorCodeCredentialAlreadyInUse - Indicates an attempt to link with a credential that has already been linked with a different Firebase account.FIRAuthErrorCodeOperationNotAllowed - Indicates that accounts with the identity provider represented by the credential are not enabled. Enable them in the Auth section of the Firebase console.FIRAuthErrors for a list of error codes that are common to all FIRUser operations. | - profileChangeRequest |
Creates an object which may be used to change the user's profile data.
FIRUserProfileChangeRequest.commitChangesWithCallback: to perform the updates atomically. | - reauthenticateWithCredential: | (FIRAuthCredential *) | credential | |
| completion: | (nullable FIRUserProfileChangeCallback) | completion | |
Renews the user's authentication tokens by validating a fresh set of credentials supplied by the user.
| credential | A user-supplied credential, which will be validated by the server. This can be a successful third-party identity provider sign-in, or an email address and password. |
| completion | Optionally; the block invoked when the re-authentication operation has finished. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeInvalidCredential Indicates the supplied credential is invalid. This could happen if it has expired or it is malformed.FIRAuthErrorCodeOperationNotAllowed Indicates that accounts with the identity provider represented by the credential are not enabled. Enable them in the Auth section of the Firebase console.FIRAuthErrorCodeEmailAlreadyInUse Indicates the email asserted by the credential (e.g. the email in a Facebook access token) is already in use by an existing account, that cannot be authenticated with this method. Call fetchProvidersForEmail for this user’s email and then prompt them to sign in with any of the sign-in providers returned. This error will only be thrown if the “One account per email address” setting is enabled in the Firebase console, under Auth settings. - Please note that the error code raised in this specific situation may not be the same on Web and Android.FIRAuthErrorCodeUserDisabled Indicates the user's account is disabled.FIRAuthErrorCodeWrongPassword Indicates the user attempted reauthentication with an incorrect password, if credential is of the type EmailPasswordAuthCredential.FIRAuthErrorCodeUserMismatch Indicates that an attempt was made to reauthenticate with a user which is not the current user.FIRAuthErrors for a list of error codes that are common to all API methods. | - reloadWithCompletion: | (nullable FIRUserProfileChangeCallback) | completion |
Reloads the user's profile data from the server.
| completion | Optionally; the block invoked when the reload has finished. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeCredentialTooOld error code. In this case you should call reauthenticateWithCredential:completion: before re-invoking updateEmail:completion:. FIRAuthErrors for a list of error codes that are common to all API methods. | - sendEmailVerificationWithCompletion: | (nullable FIRSendEmailVerificationCallback) | completion |
Initiates email verification for the user.
| completion | Optionally; the block invoked when the request to send an email verification is complete, or fails. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeUserNotFound - Indicates the user account was not found.FIRAuthErrors for a list of error codes that are common to all FIRUser operations. | - unlinkFromProvider: | (NSString *) | provider | |
| completion: | (nullable FIRAuthResultCallback) | completion | |
Disassociates a user account from a third-party identity provider with this user.
| provider | The provider ID of the provider to unlink. |
| completion | Optionally; the block invoked when the unlinking is complete, or fails. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeNoSuchProvider - Indicates an attempt to unlink a provider that is not linked to the account.FIRAuthErrorCodeRequiresRecentLogin - Updating email is a security sensitive operation that requires a recent login from the user. This error indicates the user has not signed in recently enough. To resolve, reauthenticate the user by invoking reauthenticateWithCredential:completion: on FIRUser.FIRAuthErrors for a list of error codes that are common to all FIRUser operations. | - updateEmail: | (NSString *) | ||
| completion: | (nullable FIRUserProfileChangeCallback) | completion | |
Updates the email address for the user. On success, the cached user profile data is updated.
| The email address for the user. | |
| completion | Optionally; the block invoked when the user profile change has finished. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeEmailAlreadyInUse - Indicates the email is already in use by another account.FIRAuthErrorCodeInvalidEmail - Indicates the email address is malformed.FIRAuthErrorCodeRequiresRecentLogin - Updating a user’s email is a security sensitive operation that requires a recent login from the user. This error indicates the user has not signed in recently enough. To resolve, reauthenticate the user by invoking reauthenticateWithCredential:completion: on FIRUser.FIRAuthErrors for a list of error codes that are common to all FIRUser operations. | - updatePassword: | (NSString *) | password | |
| completion: | (nullable FIRUserProfileChangeCallback) | completion | |
Updates the password for the user. On success, the cached user profile data is updated.
| password | The new password for the user. |
| completion | Optionally; the block invoked when the user profile change has finished. Invoked asynchronously on the main thread in the future. |
FIRAuthErrorCodeOperationNotAllowed - Indicates the administrator disabled sign in with the specified identity provider.FIRAuthErrorCodeRequiresRecentLogin - Updating a user’s password is a security sensitive operation that requires a recent login from the user. This error indicates the user has not signed in recently enough. To resolve, reauthenticate the user by invoking reauthenticateWithCredential:completion: on FIRUser.FIRAuthErrorCodeWeakPassword - Indicates an attempt to set a password that is considered too weak. The NSLocalizedFailureReasonErrorKey field in the NSError.userInfo dictionary object will contain more detailed explanation that can be shown to the user.FIRAuthErrors for a list of error codes that are common to all FIRUser operations.
|
readnonatomicassign |
Profile data for each identity provider, if any.
|
readnonatomicassign |
A refresh token; useful for obtaining new access tokens independently.
1.8.9.1