Repository navigation
Expand file tree
/
Copy pathAuthErrorCode.java
More file actions
116 lines (96 loc) · 2.44 KB
/
Copy pathAuthErrorCode.java
File metadata and controls
116 lines (96 loc) · 2.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
/*
* 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,
}