com.google.firebase.auth.AuthErrorCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of firebase-admin Show documentation
Show all versions of firebase-admin Show documentation
This is the official Firebase Admin Java SDK. Build extraordinary native JVM apps in
minutes with Firebase. The Firebase platform can power your app’s backend, user
authentication, static hosting, and more.
/*
* Copyright 2020 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.firebase.auth;
/**
* Error codes that can be raised by the Firebase Auth APIs.
*/
public enum AuthErrorCode {
/**
* Failed to retrieve public key certificates required to verify JWTs.
*/
CERTIFICATE_FETCH_FAILED,
/**
* No IdP configuration found for the given identifier.
*/
CONFIGURATION_NOT_FOUND,
/**
* A user already exists with the provided email.
*/
EMAIL_ALREADY_EXISTS,
/**
* No user record found for the given email, typically raised when
* generating a password reset link using an email for a user that
* is not already registered.
*/
EMAIL_NOT_FOUND,
/**
* The specified ID token is expired.
*/
EXPIRED_ID_TOKEN,
/**
* The specified session cookie is expired.
*/
EXPIRED_SESSION_COOKIE,
/**
* The provided dynamic link domain is not configured or authorized for the current project.
*/
INVALID_DYNAMIC_LINK_DOMAIN,
/**
* The specified ID token is invalid.
*/
INVALID_ID_TOKEN,
/**
* The specified session cookie is invalid.
*/
INVALID_SESSION_COOKIE,
/**
* A user already exists with the provided phone number.
*/
PHONE_NUMBER_ALREADY_EXISTS,
/**
* The specified ID token has been revoked.
*/
REVOKED_ID_TOKEN,
/**
* The specified session cookie has been revoked.
*/
REVOKED_SESSION_COOKIE,
/**
* Tenant ID in the JWT does not match.
*/
TENANT_ID_MISMATCH,
/**
* No tenant found for the given identifier.
*/
TENANT_NOT_FOUND,
/**
* A user already exists with the provided UID.
*/
UID_ALREADY_EXISTS,
/**
* The domain of the continue URL is not whitelisted. Whitelist the domain in the Firebase
* console.
*/
UNAUTHORIZED_CONTINUE_URL,
/**
* No user record found for the given identifier.
*/
USER_NOT_FOUND,
/**
* The user record is disabled.
*/
USER_DISABLED,
}