firebase:: auth
Firebase Authentication API.
Summary
Firebase Authentication provides backend services to securely authenticate users. It can authenticate users using passwords and federated identity provider credentials, and it can integrate with a custom auth backend.
Classes |
|
---|---|
firebase:: |
Firebase authentication object. |
firebase:: |
Listener called when there is a change in the authentication state. |
firebase:: |
Authentication credentials for an authentication provider. |
firebase:: |
Use email and password to authenticate. |
firebase:: |
Use an access token provided by Facebook to authenticate. |
firebase:: |
GameCenter (iOS) auth provider. |
firebase:: |
Use an access token provided by GitHub to authenticate. |
firebase:: |
Use an ID token and access token provided by Google to authenticate. |
firebase:: |
Listener called when there is a change in the ID token. |
firebase:: |
OAuth2.0+UserInfo auth provider (OIDC compliant and non-compliant). |
firebase:: |
Use phone number text messages to authenticate. |
firebase:: |
Use a server auth code provided by Google Play Games to authenticate. |
firebase:: |
Use a token and secret provided by Twitter to authenticate. |
firebase:: |
Firebase user account object. |
firebase:: |
Interface implemented by each identity provider. |
Structs |
|
---|---|
firebase:: |
Additional user data returned from an identity provider. |
firebase:: |
Result of operations that can affect authentication state. |
firebase:: |
Metadata corresponding to a Firebase user. |
Enumerations
AuthError
AuthError
All possible error codes from asynchronous calls.
For error details, call Future::ErrorMessage().
Properties | |
---|---|
kAuthErrorAccountExistsWithDifferentCredentials
|
Indicates an account already exists with the same email address but using different sign-in credentials. Account linking is required. Caused by "Sign in with credential" methods. |
kAuthErrorApiNotAvailable
|
This can happen when certain methods on App are performed, when the auth API is not loaded. Note:This error is only reported on Android. |
kAuthErrorAppNotAuthorized
|
Indicates the App is not authorized to use Firebase Authentication with the provided API Key. Common error code for all API Methods. On Android this error should no longer occur (as of 2016 v3). Common error code for all API Methods. |
kAuthErrorAppNotVerified
|
Indicates that the app could not be verified by Firebase during phone number authentication. Note:This error is iOS-specific. |
kAuthErrorAppVerificationFailed
|
Indicates a general failure during the app verification flow. Note:This error is iOS-specific. |
kAuthErrorCancelled
|
Indicates that the operation was cancelled. |
kAuthErrorCaptchaCheckFailed
|
Indicates that the reCAPTCHA token is not valid. Note:This error is iOS-specific. |
kAuthErrorCredentialAlreadyInUse
|
Indicates an attempt to link with a credential that has already been linked with a different Firebase account. Caused by "Set account info" methods. |
kAuthErrorCustomTokenMismatch
|
Indicates the service account and the API key belong to different projects. Caused by "Bring your own auth" methods. |
kAuthErrorDynamicLinkNotActivated
|
Indicates that Dynamic Links in the Firebase Console is not activated. |
kAuthErrorEmailAlreadyInUse
|
Indicates the email used to attempt a sign up is already in use. Caused by "Set account info" methods. |
kAuthErrorExpiredActionCode
|
Indicates the out-of-band authentication code is expired. |
kAuthErrorFailure
|
This indicates an internal error. Common error code for all API Methods. |
kAuthErrorInvalidActionCode
|
Indicates the out-of-band authentication code is invalid. |
kAuthErrorInvalidApiKey
|
Indicates an invalid API key was supplied in the request. For Android these should no longer occur (as of 2016 v3). Common error code for all API Methods. |
kAuthErrorInvalidAppCredential
|
Indicates that an invalid APNS device token was used in the verifyClient request. Note:This error is iOS-specific. |
kAuthErrorInvalidClientId
|
Indicates that the clientID used to invoke a web flow is invalid. Note:This error is iOS-specific. |
kAuthErrorInvalidContinueUri
|
Indicates that the domain specified in the continue URI is not valid. Note:This error is iOS-specific. |
kAuthErrorInvalidCredential
|
Indicates the IDP token or requestUri is invalid. Caused by "Sign in with credential" methods. |
kAuthErrorInvalidCustomToken
|
Indicates a validation error with the custom token. This error originates from "bring your own auth" methods. |
kAuthErrorInvalidEmail
|
Indicates an invalid email address. Caused by "Sign in with password" methods. |
kAuthErrorInvalidLinkDomain
|
Indicates that an FDL domain used for an out of band code flow is either not configured or is unauthorized for the current project. |
kAuthErrorInvalidMessagePayload
|
Indicates that there are invalid parameters in the payload during a "send password reset email" attempt. |
kAuthErrorInvalidPhoneNumber
|
Indicates that an invalid phone number was provided. This is caused when the user is entering a phone number for verification. |
kAuthErrorInvalidProviderId
|
Indicates that the provider id given for the web operation is invalid. |
kAuthErrorInvalidRecipientEmail
|
Indicates that the recipient email is invalid. |
kAuthErrorInvalidSender
|
Indicates that the sender email is invalid during a "send password reset email" attempt. |
kAuthErrorInvalidTenantId
|
Indicates that a request was made to the backend with an invalid tenant ID. |
kAuthErrorInvalidUserToken
|
Indicates user's saved auth credential is invalid, the user needs to sign in again. Caused by |