firebase-admin-edge 1.0.17 → 1.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -0
- package/dist/auth/auth-endpoint-errors.d.ts +15 -0
- package/dist/auth/auth-endpoint-errors.d.ts.map +1 -0
- package/dist/auth/auth-endpoint-errors.js +120 -0
- package/dist/auth/auth-endpoint-errors.js.map +1 -0
- package/dist/auth/auth-error-codes.d.ts +777 -0
- package/dist/auth/auth-error-codes.d.ts.map +1 -0
- package/dist/auth/auth-error-codes.js +823 -0
- package/dist/auth/auth-error-codes.js.map +1 -0
- package/dist/auth/errors.d.ts +20 -0
- package/dist/auth/errors.d.ts.map +1 -0
- package/dist/auth/errors.js +29 -0
- package/dist/auth/errors.js.map +1 -0
- package/dist/auth/firebase-admin-auth.d.ts +6 -45
- package/dist/auth/firebase-admin-auth.d.ts.map +1 -1
- package/dist/auth/firebase-admin-auth.js +17 -39
- package/dist/auth/firebase-admin-auth.js.map +1 -1
- package/dist/auth/firebase-admin-auth.test.js +38 -54
- package/dist/auth/firebase-admin-auth.test.js.map +1 -1
- package/dist/auth/firebase-auth-endpoints.d.ts +9 -72
- package/dist/auth/firebase-auth-endpoints.d.ts.map +1 -1
- package/dist/auth/firebase-auth-endpoints.js +10 -8
- package/dist/auth/firebase-auth-endpoints.js.map +1 -1
- package/dist/auth/firebase-auth-endpoints.test.js +13 -4
- package/dist/auth/firebase-auth-endpoints.test.js.map +1 -1
- package/dist/auth/firebase-auth.d.ts +3 -24
- package/dist/auth/firebase-auth.d.ts.map +1 -1
- package/dist/auth/firebase-auth.js +58 -20
- package/dist/auth/firebase-auth.js.map +1 -1
- package/dist/auth/firebase-auth.test.js +26 -9
- package/dist/auth/firebase-auth.test.js.map +1 -1
- package/dist/auth/firebase-jwt.d.ts +5 -29
- package/dist/auth/firebase-jwt.d.ts.map +1 -1
- package/dist/auth/firebase-jwt.js +74 -27
- package/dist/auth/firebase-jwt.js.map +1 -1
- package/dist/auth/firebase-jwt.test.js +31 -11
- package/dist/auth/firebase-jwt.test.js.map +1 -1
- package/dist/auth/firebase-types.d.ts +12 -8
- package/dist/auth/firebase-types.d.ts.map +1 -1
- package/dist/auth/github-oauth.d.ts +5 -2
- package/dist/auth/github-oauth.d.ts.map +1 -1
- package/dist/auth/github-oauth.js +126 -13
- package/dist/auth/github-oauth.js.map +1 -1
- package/dist/auth/github-oauth.test.d.ts +2 -0
- package/dist/auth/github-oauth.test.d.ts.map +1 -0
- package/dist/auth/github-oauth.test.js +202 -0
- package/dist/auth/github-oauth.test.js.map +1 -0
- package/dist/auth/google-oauth.d.ts +7 -22
- package/dist/auth/google-oauth.d.ts.map +1 -1
- package/dist/auth/google-oauth.js +103 -40
- package/dist/auth/google-oauth.js.map +1 -1
- package/dist/auth/google-oauth.test.js +107 -32
- package/dist/auth/google-oauth.test.js.map +1 -1
- package/dist/auth/oauth.d.ts +3 -0
- package/dist/auth/oauth.d.ts.map +1 -0
- package/dist/auth/oauth.js +28 -0
- package/dist/auth/oauth.js.map +1 -0
- package/dist/auth/oauth.test.d.ts +2 -0
- package/dist/auth/oauth.test.d.ts.map +1 -0
- package/dist/auth/oauth.test.js +233 -0
- package/dist/auth/oauth.test.js.map +1 -0
- package/dist/firebase-edge-errors.d.ts +95 -0
- package/dist/firebase-edge-errors.d.ts.map +1 -0
- package/dist/firebase-edge-errors.js +102 -0
- package/dist/firebase-edge-errors.js.map +1 -0
- package/dist/firebase-edge-errors.test.d.ts +2 -0
- package/dist/firebase-edge-errors.test.d.ts.map +1 -0
- package/dist/firebase-edge-errors.test.js +72 -0
- package/dist/firebase-edge-errors.test.js.map +1 -0
- package/dist/firebase-edge-server.d.ts +4 -35
- package/dist/firebase-edge-server.d.ts.map +1 -1
- package/dist/firebase-edge-server.js +29 -12
- package/dist/firebase-edge-server.js.map +1 -1
- package/dist/firebase-edge-server.test.js +10 -7
- package/dist/firebase-edge-server.test.js.map +1 -1
- package/dist/rest-fetch.js +4 -5
- package/dist/rest-fetch.js.map +1 -1
- package/dist/rest-fetch.test.js +0 -6
- package/dist/rest-fetch.test.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,823 @@
|
|
|
1
|
+
export const FirebaseAdminAuthErrorInfo = {
|
|
2
|
+
// User Management Errors
|
|
3
|
+
ADMIN_USER_NOT_FOUND: {
|
|
4
|
+
message: 'No user record found for the provided UID.',
|
|
5
|
+
code: 'auth/admin-user-not-found'
|
|
6
|
+
},
|
|
7
|
+
ADMIN_USER_DISABLED: {
|
|
8
|
+
message: 'The user account has been disabled by an administrator.',
|
|
9
|
+
code: 'auth/admin-user-disabled'
|
|
10
|
+
},
|
|
11
|
+
ADMIN_INVALID_UID: {
|
|
12
|
+
message: 'The provided UID is invalid or malformed.',
|
|
13
|
+
code: 'auth/admin-invalid-uid'
|
|
14
|
+
},
|
|
15
|
+
ADMIN_UID_TOO_LONG: {
|
|
16
|
+
message: 'The UID must not be longer than 128 characters.',
|
|
17
|
+
code: 'auth/admin-uid-too-long'
|
|
18
|
+
},
|
|
19
|
+
ADMIN_USER_LOOKUP_FAILED: {
|
|
20
|
+
message: 'Failed to retrieve user information from Firebase Admin.',
|
|
21
|
+
code: 'auth/admin-user-lookup-failed'
|
|
22
|
+
},
|
|
23
|
+
// Service Account and Token Management
|
|
24
|
+
ADMIN_SERVICE_ACCOUNT_TOKEN_FAILED: {
|
|
25
|
+
message: 'Failed to obtain service account access token for admin operations.',
|
|
26
|
+
code: 'auth/admin-service-account-token-failed'
|
|
27
|
+
},
|
|
28
|
+
ADMIN_NO_TOKEN_RETURNED: {
|
|
29
|
+
message: 'No access token was returned from service account authentication.',
|
|
30
|
+
code: 'auth/admin-no-token-returned'
|
|
31
|
+
},
|
|
32
|
+
ADMIN_INVALID_SERVICE_ACCOUNT: {
|
|
33
|
+
message: 'The service account configuration is invalid for admin operations.',
|
|
34
|
+
code: 'auth/admin-invalid-service-account'
|
|
35
|
+
},
|
|
36
|
+
ADMIN_SERVICE_ACCOUNT_KEY_MISSING: {
|
|
37
|
+
message: 'Service account key file is missing or invalid.',
|
|
38
|
+
code: 'auth/admin-service-account-key-missing'
|
|
39
|
+
},
|
|
40
|
+
// ID Token Verification Errors
|
|
41
|
+
ADMIN_ID_TOKEN_VERIFY_FAILED: {
|
|
42
|
+
message: 'Failed to verify the Firebase ID token using admin SDK.',
|
|
43
|
+
code: 'auth/admin-id-token-verify-failed'
|
|
44
|
+
},
|
|
45
|
+
ADMIN_ID_TOKEN_DECODE_FAILED: {
|
|
46
|
+
message: 'Failed to decode the Firebase ID token payload.',
|
|
47
|
+
code: 'auth/admin-id-token-decode-failed'
|
|
48
|
+
},
|
|
49
|
+
ADMIN_ID_TOKEN_EXPIRED: {
|
|
50
|
+
message: 'The Firebase ID token has expired.',
|
|
51
|
+
code: 'auth/admin-id-token-expired'
|
|
52
|
+
},
|
|
53
|
+
ADMIN_ID_TOKEN_REVOKED: {
|
|
54
|
+
message: 'The Firebase ID token has been revoked.',
|
|
55
|
+
code: 'auth/admin-id-token-revoked'
|
|
56
|
+
},
|
|
57
|
+
ADMIN_ID_TOKEN_INVALID: {
|
|
58
|
+
message: 'The provided Firebase ID token is invalid.',
|
|
59
|
+
code: 'auth/admin-id-token-invalid'
|
|
60
|
+
},
|
|
61
|
+
// Session Cookie Management
|
|
62
|
+
ADMIN_SESSION_COOKIE_CREATE_FAILED: {
|
|
63
|
+
message: 'Failed to create Firebase session cookie using admin SDK.',
|
|
64
|
+
code: 'auth/admin-session-cookie-create-failed'
|
|
65
|
+
},
|
|
66
|
+
ADMIN_SESSION_COOKIE_VERIFY_FAILED: {
|
|
67
|
+
message: 'Failed to verify Firebase session cookie using admin SDK.',
|
|
68
|
+
code: 'auth/admin-session-cookie-verify-failed'
|
|
69
|
+
},
|
|
70
|
+
ADMIN_SESSION_COOKIE_EXPIRED: {
|
|
71
|
+
message: 'The Firebase session cookie has expired.',
|
|
72
|
+
code: 'auth/admin-session-cookie-expired'
|
|
73
|
+
},
|
|
74
|
+
ADMIN_SESSION_COOKIE_REVOKED: {
|
|
75
|
+
message: 'The Firebase session cookie has been revoked.',
|
|
76
|
+
code: 'auth/admin-session-cookie-revoked'
|
|
77
|
+
},
|
|
78
|
+
ADMIN_SESSION_COOKIE_INVALID: {
|
|
79
|
+
message: 'The provided session cookie is invalid.',
|
|
80
|
+
code: 'auth/admin-session-cookie-invalid'
|
|
81
|
+
},
|
|
82
|
+
ADMIN_SESSION_COOKIE_DURATION_INVALID: {
|
|
83
|
+
message: 'Session cookie duration must be between 5 minutes and 2 weeks.',
|
|
84
|
+
code: 'auth/admin-session-cookie-duration-invalid'
|
|
85
|
+
},
|
|
86
|
+
// Custom Token Management
|
|
87
|
+
ADMIN_CUSTOM_TOKEN_CREATE_FAILED: {
|
|
88
|
+
message: 'Failed to create custom JWT token using admin SDK.',
|
|
89
|
+
code: 'auth/admin-custom-token-create-failed'
|
|
90
|
+
},
|
|
91
|
+
ADMIN_CUSTOM_TOKEN_NO_DATA: {
|
|
92
|
+
message: 'No custom token data was returned from creation process.',
|
|
93
|
+
code: 'auth/admin-custom-token-no-data'
|
|
94
|
+
},
|
|
95
|
+
ADMIN_CUSTOM_TOKEN_INVALID_CLAIMS: {
|
|
96
|
+
message: 'Invalid custom claims provided for admin token creation.',
|
|
97
|
+
code: 'auth/admin-custom-token-invalid-claims'
|
|
98
|
+
},
|
|
99
|
+
ADMIN_CUSTOM_TOKEN_CLAIMS_TOO_LARGE: {
|
|
100
|
+
message: 'Custom claims payload exceeds the maximum allowed size.',
|
|
101
|
+
code: 'auth/admin-custom-token-claims-too-large'
|
|
102
|
+
},
|
|
103
|
+
// Token Revocation and Validation
|
|
104
|
+
ADMIN_TOKEN_REVOCATION_CHECK_FAILED: {
|
|
105
|
+
message: 'Failed to check if token has been revoked.',
|
|
106
|
+
code: 'auth/admin-token-revocation-check-failed'
|
|
107
|
+
},
|
|
108
|
+
ADMIN_TOKENS_VALID_AFTER_CHECK_FAILED: {
|
|
109
|
+
message: 'Failed to validate token against user tokens valid after time.',
|
|
110
|
+
code: 'auth/admin-tokens-valid-after-check-failed'
|
|
111
|
+
},
|
|
112
|
+
ADMIN_USER_RECORD_NOT_FOUND: {
|
|
113
|
+
message: 'No user record found during token revocation check.',
|
|
114
|
+
code: 'auth/admin-user-record-not-found'
|
|
115
|
+
},
|
|
116
|
+
// Firebase REST API Admin Errors
|
|
117
|
+
ADMIN_API_REQUEST_FAILED: {
|
|
118
|
+
message: 'Firebase Admin API request failed.',
|
|
119
|
+
code: 'auth/admin-api-request-failed'
|
|
120
|
+
},
|
|
121
|
+
ADMIN_API_QUOTA_EXCEEDED: {
|
|
122
|
+
message: 'Firebase Admin API quota exceeded.',
|
|
123
|
+
code: 'auth/admin-api-quota-exceeded'
|
|
124
|
+
},
|
|
125
|
+
ADMIN_API_PERMISSION_DENIED: {
|
|
126
|
+
message: 'Permission denied for Firebase Admin API operation.',
|
|
127
|
+
code: 'auth/admin-api-permission-denied'
|
|
128
|
+
},
|
|
129
|
+
ADMIN_API_NETWORK_ERROR: {
|
|
130
|
+
message: 'Network error occurred during Firebase Admin API request.',
|
|
131
|
+
code: 'auth/admin-api-network-error'
|
|
132
|
+
},
|
|
133
|
+
ADMIN_API_INVALID_ARGUMENT: {
|
|
134
|
+
message: 'Invalid argument provided to Firebase Admin API.',
|
|
135
|
+
code: 'auth/admin-api-invalid-argument'
|
|
136
|
+
},
|
|
137
|
+
// Project and Configuration Errors
|
|
138
|
+
ADMIN_PROJECT_NOT_FOUND: {
|
|
139
|
+
message: 'Firebase project not found or not accessible.',
|
|
140
|
+
code: 'auth/admin-project-not-found'
|
|
141
|
+
},
|
|
142
|
+
ADMIN_PROJECT_ID_INVALID: {
|
|
143
|
+
message: 'The provided Firebase project ID is invalid.',
|
|
144
|
+
code: 'auth/admin-project-id-invalid'
|
|
145
|
+
},
|
|
146
|
+
ADMIN_INSUFFICIENT_PERMISSION: {
|
|
147
|
+
message: 'Insufficient permissions for admin operation.',
|
|
148
|
+
code: 'auth/admin-insufficient-permission'
|
|
149
|
+
},
|
|
150
|
+
// Generic Admin Errors
|
|
151
|
+
ADMIN_OPERATION_FAILED: {
|
|
152
|
+
message: 'Firebase Admin operation failed.',
|
|
153
|
+
code: 'auth/admin-operation-failed'
|
|
154
|
+
},
|
|
155
|
+
ADMIN_INTERNAL_ERROR: {
|
|
156
|
+
message: 'An internal error occurred in Firebase Admin SDK.',
|
|
157
|
+
code: 'auth/admin-internal-error'
|
|
158
|
+
},
|
|
159
|
+
ADMIN_UNKNOWN_ERROR: {
|
|
160
|
+
message: 'An unknown error occurred during admin operation.',
|
|
161
|
+
code: 'auth/admin-unknown-error'
|
|
162
|
+
},
|
|
163
|
+
// Account Import/Export Errors
|
|
164
|
+
ADMIN_USER_IMPORT_FAILED: {
|
|
165
|
+
message: 'Failed to import user accounts.',
|
|
166
|
+
code: 'auth/admin-user-import-failed'
|
|
167
|
+
},
|
|
168
|
+
ADMIN_USER_EXPORT_FAILED: {
|
|
169
|
+
message: 'Failed to export user accounts.',
|
|
170
|
+
code: 'auth/admin-user-export-failed'
|
|
171
|
+
},
|
|
172
|
+
// Tenant Management (Multi-tenancy)
|
|
173
|
+
ADMIN_TENANT_NOT_FOUND: {
|
|
174
|
+
message: 'The specified tenant was not found.',
|
|
175
|
+
code: 'auth/admin-tenant-not-found'
|
|
176
|
+
},
|
|
177
|
+
ADMIN_TENANT_ID_INVALID: {
|
|
178
|
+
message: 'The provided tenant ID is invalid.',
|
|
179
|
+
code: 'auth/admin-tenant-id-invalid'
|
|
180
|
+
},
|
|
181
|
+
// Email and Phone Verification
|
|
182
|
+
ADMIN_EMAIL_VERIFICATION_FAILED: {
|
|
183
|
+
message: 'Failed to send email verification.',
|
|
184
|
+
code: 'auth/admin-email-verification-failed'
|
|
185
|
+
},
|
|
186
|
+
ADMIN_PHONE_VERIFICATION_FAILED: {
|
|
187
|
+
message: 'Failed to send phone verification.',
|
|
188
|
+
code: 'auth/admin-phone-verification-failed'
|
|
189
|
+
},
|
|
190
|
+
// Provider Management
|
|
191
|
+
ADMIN_PROVIDER_CONFIG_INVALID: {
|
|
192
|
+
message: 'Invalid provider configuration for admin operations.',
|
|
193
|
+
code: 'auth/admin-provider-config-invalid'
|
|
194
|
+
},
|
|
195
|
+
ADMIN_PROVIDER_NOT_ENABLED: {
|
|
196
|
+
message: 'The authentication provider is not enabled.',
|
|
197
|
+
code: 'auth/admin-provider-not-enabled'
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
export const FirebaseAuthErrorInfo = {
|
|
201
|
+
// Authentication Token Errors
|
|
202
|
+
AUTH_TOKEN_EXPIRED: {
|
|
203
|
+
message: 'The Firebase Auth token has expired.',
|
|
204
|
+
code: 'auth/token-expired'
|
|
205
|
+
},
|
|
206
|
+
AUTH_INVALID_TOKEN: {
|
|
207
|
+
message: 'The Firebase Auth token is invalid.',
|
|
208
|
+
code: 'auth/invalid-token'
|
|
209
|
+
},
|
|
210
|
+
AUTH_TOKEN_REVOKED: {
|
|
211
|
+
message: 'The Firebase Auth token has been revoked.',
|
|
212
|
+
code: 'auth/token-revoked'
|
|
213
|
+
},
|
|
214
|
+
AUTH_TOKEN_NOT_FOUND: {
|
|
215
|
+
message: 'No Firebase Auth token provided.',
|
|
216
|
+
code: 'auth/token-not-found'
|
|
217
|
+
},
|
|
218
|
+
// User Management Errors
|
|
219
|
+
AUTH_USER_NOT_FOUND: {
|
|
220
|
+
message: 'No user record found for the provided identifier.',
|
|
221
|
+
code: 'auth/user-not-found'
|
|
222
|
+
},
|
|
223
|
+
AUTH_USER_DISABLED: {
|
|
224
|
+
message: 'The user account has been disabled.',
|
|
225
|
+
code: 'auth/user-disabled'
|
|
226
|
+
},
|
|
227
|
+
AUTH_USER_RECORD_NOT_FOUND: {
|
|
228
|
+
message: 'No user record found.',
|
|
229
|
+
code: 'auth/user-record-not-found'
|
|
230
|
+
},
|
|
231
|
+
AUTH_INVALID_USER_UID: {
|
|
232
|
+
message: 'The provided user UID is invalid.',
|
|
233
|
+
code: 'auth/invalid-uid'
|
|
234
|
+
},
|
|
235
|
+
// ID Token Verification Errors
|
|
236
|
+
AUTH_ID_TOKEN_EXPIRED: {
|
|
237
|
+
message: 'The Firebase ID token has expired.',
|
|
238
|
+
code: 'auth/id-token-expired'
|
|
239
|
+
},
|
|
240
|
+
AUTH_ID_TOKEN_REVOKED: {
|
|
241
|
+
message: 'The Firebase ID token has been revoked.',
|
|
242
|
+
code: 'auth/id-token-revoked'
|
|
243
|
+
},
|
|
244
|
+
AUTH_INVALID_ID_TOKEN: {
|
|
245
|
+
message: 'The Firebase ID token is invalid.',
|
|
246
|
+
code: 'auth/invalid-id-token'
|
|
247
|
+
},
|
|
248
|
+
AUTH_ID_TOKEN_VERIFY_FAILED: {
|
|
249
|
+
message: 'Failed to verify Firebase ID token.',
|
|
250
|
+
code: 'auth/id-token-verify-failed'
|
|
251
|
+
},
|
|
252
|
+
AUTH_ID_TOKEN_DECODE_FAILED: {
|
|
253
|
+
message: 'Failed to decode Firebase ID token.',
|
|
254
|
+
code: 'auth/id-token-decode-failed'
|
|
255
|
+
},
|
|
256
|
+
// Session Cookie Errors
|
|
257
|
+
AUTH_SESSION_COOKIE_EXPIRED: {
|
|
258
|
+
message: 'The Firebase session cookie has expired.',
|
|
259
|
+
code: 'auth/session-cookie-expired'
|
|
260
|
+
},
|
|
261
|
+
AUTH_SESSION_COOKIE_REVOKED: {
|
|
262
|
+
message: 'The Firebase session cookie has been revoked.',
|
|
263
|
+
code: 'auth/session-cookie-revoked'
|
|
264
|
+
},
|
|
265
|
+
AUTH_INVALID_SESSION_COOKIE: {
|
|
266
|
+
message: 'The Firebase session cookie is invalid.',
|
|
267
|
+
code: 'auth/invalid-session-cookie'
|
|
268
|
+
},
|
|
269
|
+
AUTH_SESSION_COOKIE_VERIFY_FAILED: {
|
|
270
|
+
message: 'Failed to verify Firebase session cookie.',
|
|
271
|
+
code: 'auth/session-cookie-verify-failed'
|
|
272
|
+
},
|
|
273
|
+
AUTH_SESSION_COOKIE_CREATE_FAILED: {
|
|
274
|
+
message: 'Failed to create Firebase session cookie.',
|
|
275
|
+
code: 'auth/session-cookie-create-failed'
|
|
276
|
+
},
|
|
277
|
+
// Custom Token Errors
|
|
278
|
+
AUTH_INVALID_CUSTOM_TOKEN: {
|
|
279
|
+
message: 'The custom token format is invalid.',
|
|
280
|
+
code: 'auth/invalid-custom-token'
|
|
281
|
+
},
|
|
282
|
+
AUTH_CUSTOM_TOKEN_MISMATCH: {
|
|
283
|
+
message: 'The custom token corresponds to a different project.',
|
|
284
|
+
code: 'auth/custom-token-mismatch'
|
|
285
|
+
},
|
|
286
|
+
AUTH_CUSTOM_TOKEN_SIGN_FAILED: {
|
|
287
|
+
message: 'Failed to sign custom token.',
|
|
288
|
+
code: 'auth/custom-token-sign-failed'
|
|
289
|
+
},
|
|
290
|
+
AUTH_INVALID_DEVELOPER_CLAIMS: {
|
|
291
|
+
message: 'Invalid developer claims provided for custom token.',
|
|
292
|
+
code: 'auth/invalid-developer-claims'
|
|
293
|
+
},
|
|
294
|
+
// Service Account Errors
|
|
295
|
+
AUTH_INVALID_SERVICE_ACCOUNT: {
|
|
296
|
+
message: 'The service account configuration is invalid.',
|
|
297
|
+
code: 'auth/invalid-service-account'
|
|
298
|
+
},
|
|
299
|
+
AUTH_SERVICE_ACCOUNT_TOKEN_FAILED: {
|
|
300
|
+
message: 'Failed to obtain service account access token.',
|
|
301
|
+
code: 'auth/service-account-token-failed'
|
|
302
|
+
},
|
|
303
|
+
AUTH_MISSING_SERVICE_ACCOUNT: {
|
|
304
|
+
message: 'Service account configuration is missing.',
|
|
305
|
+
code: 'auth/missing-service-account'
|
|
306
|
+
},
|
|
307
|
+
// Firebase REST API Errors
|
|
308
|
+
AUTH_API_REQUEST_FAILED: {
|
|
309
|
+
message: 'Firebase Auth API request failed.',
|
|
310
|
+
code: 'auth/api-request-failed'
|
|
311
|
+
},
|
|
312
|
+
AUTH_NETWORK_ERROR: {
|
|
313
|
+
message: 'Network error occurred during Firebase Auth request.',
|
|
314
|
+
code: 'auth/network-error'
|
|
315
|
+
},
|
|
316
|
+
AUTH_QUOTA_EXCEEDED: {
|
|
317
|
+
message: 'Firebase Auth quota exceeded.',
|
|
318
|
+
code: 'auth/quota-exceeded'
|
|
319
|
+
},
|
|
320
|
+
AUTH_UNAUTHORIZED: {
|
|
321
|
+
message: 'Unauthorized to perform Firebase Auth operation.',
|
|
322
|
+
code: 'auth/unauthorized'
|
|
323
|
+
},
|
|
324
|
+
// Provider Sign-In Errors
|
|
325
|
+
AUTH_PROVIDER_SIGN_IN_FAILED: {
|
|
326
|
+
message: 'Failed to sign in with identity provider.',
|
|
327
|
+
code: 'auth/provider-sign-in-failed'
|
|
328
|
+
},
|
|
329
|
+
AUTH_INVALID_PROVIDER_ID: {
|
|
330
|
+
message: 'The provider ID is not supported.',
|
|
331
|
+
code: 'auth/invalid-provider-id'
|
|
332
|
+
},
|
|
333
|
+
AUTH_PROVIDER_DATA_MISSING: {
|
|
334
|
+
message: 'Provider sign-in data is missing or invalid.',
|
|
335
|
+
code: 'auth/provider-data-missing'
|
|
336
|
+
},
|
|
337
|
+
// Account Linking Errors
|
|
338
|
+
AUTH_EMAIL_ALREADY_EXISTS: {
|
|
339
|
+
message: 'The email address is already in use by another account.',
|
|
340
|
+
code: 'auth/email-already-exists'
|
|
341
|
+
},
|
|
342
|
+
AUTH_PHONE_NUMBER_ALREADY_EXISTS: {
|
|
343
|
+
message: 'The phone number is already in use by another account.',
|
|
344
|
+
code: 'auth/phone-number-already-exists'
|
|
345
|
+
},
|
|
346
|
+
AUTH_UID_ALREADY_EXISTS: {
|
|
347
|
+
message: 'The user with the provided UID already exists.',
|
|
348
|
+
code: 'auth/uid-already-exists'
|
|
349
|
+
},
|
|
350
|
+
// Refresh Token Errors
|
|
351
|
+
AUTH_REFRESH_TOKEN_EXPIRED: {
|
|
352
|
+
message: 'The refresh token has expired.',
|
|
353
|
+
code: 'auth/refresh-token-expired'
|
|
354
|
+
},
|
|
355
|
+
AUTH_INVALID_REFRESH_TOKEN: {
|
|
356
|
+
message: 'The refresh token is invalid.',
|
|
357
|
+
code: 'auth/invalid-refresh-token'
|
|
358
|
+
},
|
|
359
|
+
AUTH_REFRESH_TOKEN_FAILED: {
|
|
360
|
+
message: 'Failed to refresh Firebase ID token.',
|
|
361
|
+
code: 'auth/refresh-token-failed'
|
|
362
|
+
},
|
|
363
|
+
// Configuration Errors
|
|
364
|
+
AUTH_INVALID_API_KEY: {
|
|
365
|
+
message: 'The Firebase API key is invalid.',
|
|
366
|
+
code: 'auth/invalid-api-key'
|
|
367
|
+
},
|
|
368
|
+
AUTH_INVALID_PROJECT_ID: {
|
|
369
|
+
message: 'The Firebase project ID is invalid.',
|
|
370
|
+
code: 'auth/invalid-project-id'
|
|
371
|
+
},
|
|
372
|
+
AUTH_PROJECT_NOT_FOUND: {
|
|
373
|
+
message: 'The Firebase project was not found.',
|
|
374
|
+
code: 'auth/project-not-found'
|
|
375
|
+
},
|
|
376
|
+
// Multi-factor Authentication Errors
|
|
377
|
+
AUTH_MFA_REQUIRED: {
|
|
378
|
+
message: 'Multi-factor authentication is required.',
|
|
379
|
+
code: 'auth/multi-factor-auth-required'
|
|
380
|
+
},
|
|
381
|
+
AUTH_INVALID_MFA_SESSION: {
|
|
382
|
+
message: 'The multi-factor authentication session is invalid.',
|
|
383
|
+
code: 'auth/invalid-multi-factor-session'
|
|
384
|
+
},
|
|
385
|
+
// Tenant Management Errors
|
|
386
|
+
AUTH_INVALID_TENANT_ID: {
|
|
387
|
+
message: 'The tenant ID is invalid.',
|
|
388
|
+
code: 'auth/invalid-tenant-id'
|
|
389
|
+
},
|
|
390
|
+
AUTH_TENANT_NOT_FOUND: {
|
|
391
|
+
message: 'The tenant was not found.',
|
|
392
|
+
code: 'auth/tenant-not-found'
|
|
393
|
+
},
|
|
394
|
+
// Claims and Permissions Errors
|
|
395
|
+
AUTH_INSUFFICIENT_PERMISSION: {
|
|
396
|
+
message: 'Insufficient permission to perform the operation.',
|
|
397
|
+
code: 'auth/insufficient-permission'
|
|
398
|
+
},
|
|
399
|
+
AUTH_INVALID_CLAIMS: {
|
|
400
|
+
message: 'The custom claims object is invalid.',
|
|
401
|
+
code: 'auth/invalid-claims'
|
|
402
|
+
},
|
|
403
|
+
AUTH_CLAIMS_TOO_LARGE: {
|
|
404
|
+
message: 'The custom claims exceed the maximum allowed size.',
|
|
405
|
+
code: 'auth/claims-too-large'
|
|
406
|
+
},
|
|
407
|
+
// Authentication State Errors
|
|
408
|
+
AUTH_USER_MISMATCH: {
|
|
409
|
+
message: 'The user does not match the authenticated user.',
|
|
410
|
+
code: 'auth/user-mismatch'
|
|
411
|
+
},
|
|
412
|
+
AUTH_OPERATION_NOT_ALLOWED: {
|
|
413
|
+
message: 'The authentication operation is not allowed.',
|
|
414
|
+
code: 'auth/operation-not-allowed'
|
|
415
|
+
},
|
|
416
|
+
AUTH_ADMIN_RESTRICTED_OPERATION: {
|
|
417
|
+
message: 'This operation is restricted to administrators only.',
|
|
418
|
+
code: 'auth/admin-restricted-operation'
|
|
419
|
+
},
|
|
420
|
+
// Generic Firebase Auth Errors
|
|
421
|
+
AUTH_INTERNAL_ERROR: {
|
|
422
|
+
message: 'An internal error occurred in Firebase Auth.',
|
|
423
|
+
code: 'auth/internal-error'
|
|
424
|
+
},
|
|
425
|
+
AUTH_UNKNOWN_ERROR: {
|
|
426
|
+
message: 'An unknown error occurred in Firebase Auth.',
|
|
427
|
+
code: 'auth/unknown-error'
|
|
428
|
+
},
|
|
429
|
+
AUTH_OPERATION_FAILED: {
|
|
430
|
+
message: 'The Firebase Auth operation failed.',
|
|
431
|
+
code: 'auth/operation-failed'
|
|
432
|
+
}
|
|
433
|
+
};
|
|
434
|
+
export const JWTErrorInfo = {
|
|
435
|
+
// JWT Verification Errors
|
|
436
|
+
JWT_EXPIRED: {
|
|
437
|
+
message: 'The JWT token has expired.',
|
|
438
|
+
code: 'auth/jwt-expired'
|
|
439
|
+
},
|
|
440
|
+
JWT_INVALID_SIGNATURE: {
|
|
441
|
+
message: 'JWT signature verification failed.',
|
|
442
|
+
code: 'auth/jwt-invalid-signature'
|
|
443
|
+
},
|
|
444
|
+
JWT_CLAIM_VALIDATION_FAILED: {
|
|
445
|
+
message: 'JWT claim validation failed.',
|
|
446
|
+
code: 'auth/jwt-claim-validation-failed'
|
|
447
|
+
},
|
|
448
|
+
JWT_INVALID_TOKEN: {
|
|
449
|
+
message: 'The JWT token is invalid or malformed.',
|
|
450
|
+
code: 'auth/jwt-invalid-token'
|
|
451
|
+
},
|
|
452
|
+
JWT_NO_KID_FOUND: {
|
|
453
|
+
message: 'Invalid JWT: no Key ID (KID) found in header.',
|
|
454
|
+
code: 'auth/jwt-no-kid-found'
|
|
455
|
+
},
|
|
456
|
+
JWT_NO_MATCHING_KEY: {
|
|
457
|
+
message: 'No matching public key found for the JWT Key ID.',
|
|
458
|
+
code: 'auth/jwt-no-matching-key'
|
|
459
|
+
},
|
|
460
|
+
JWT_NO_PUBLIC_KEYS: {
|
|
461
|
+
message: 'No public keys retrieved for JWT verification.',
|
|
462
|
+
code: 'auth/jwt-no-public-keys'
|
|
463
|
+
},
|
|
464
|
+
JWT_NO_JWKS_RETRIEVED: {
|
|
465
|
+
message: 'No JSON Web Key Set (JWKS) retrieved for verification.',
|
|
466
|
+
code: 'auth/jwt-no-jwks-retrieved'
|
|
467
|
+
},
|
|
468
|
+
// JWT Signing Errors
|
|
469
|
+
JWT_PRIVATE_KEY_IMPORT_FAILED: {
|
|
470
|
+
message: 'Failed to import private key for JWT signing.',
|
|
471
|
+
code: 'auth/jwt-private-key-import-failed'
|
|
472
|
+
},
|
|
473
|
+
JWT_SIGNING_FAILED: {
|
|
474
|
+
message: 'Failed to sign JWT token.',
|
|
475
|
+
code: 'auth/jwt-signing-failed'
|
|
476
|
+
},
|
|
477
|
+
JWT_JOSE_ERROR: {
|
|
478
|
+
message: 'JOSE library error occurred during JWT operation.',
|
|
479
|
+
code: 'auth/jwt-jose-error'
|
|
480
|
+
},
|
|
481
|
+
JWT_UNKNOWN_SIGNING_ERROR: {
|
|
482
|
+
message: 'Unknown error occurred during JWT signing.',
|
|
483
|
+
code: 'auth/jwt-unknown-signing-error'
|
|
484
|
+
},
|
|
485
|
+
JWT_UNKNOWN_VERIFICATION_ERROR: {
|
|
486
|
+
message: 'Unknown error occurred during JWT verification.',
|
|
487
|
+
code: 'auth/jwt-unknown-verification-error'
|
|
488
|
+
},
|
|
489
|
+
// Custom Token Specific Errors
|
|
490
|
+
JWT_RESERVED_CLAIMS: {
|
|
491
|
+
message: 'Reserved claims cannot be used in custom JWT tokens.',
|
|
492
|
+
code: 'auth/jwt-reserved-claims'
|
|
493
|
+
},
|
|
494
|
+
JWT_INVALID_CUSTOM_CLAIMS: {
|
|
495
|
+
message: 'Invalid custom claims provided for JWT token.',
|
|
496
|
+
code: 'auth/jwt-invalid-custom-claims'
|
|
497
|
+
},
|
|
498
|
+
// Session Cookie Specific Errors
|
|
499
|
+
JWT_INVALID_SESSION_COOKIE: {
|
|
500
|
+
message: 'Invalid session cookie format or content.',
|
|
501
|
+
code: 'auth/jwt-invalid-session-cookie'
|
|
502
|
+
},
|
|
503
|
+
JWT_SESSION_COOKIE_EXPIRED: {
|
|
504
|
+
message: 'The session cookie has expired.',
|
|
505
|
+
code: 'auth/jwt-session-cookie-expired'
|
|
506
|
+
},
|
|
507
|
+
// Key Management Errors
|
|
508
|
+
JWT_KEY_CACHE_ERROR: {
|
|
509
|
+
message: 'Error occurred while caching cryptographic keys.',
|
|
510
|
+
code: 'auth/jwt-key-cache-error'
|
|
511
|
+
},
|
|
512
|
+
JWT_PUBLIC_KEY_FORMAT_ERROR: {
|
|
513
|
+
message: 'Public key format is invalid or unsupported.',
|
|
514
|
+
code: 'auth/jwt-public-key-format-error'
|
|
515
|
+
},
|
|
516
|
+
// Service Account Errors
|
|
517
|
+
JWT_INVALID_SERVICE_ACCOUNT: {
|
|
518
|
+
message: 'Invalid service account configuration for JWT operations.',
|
|
519
|
+
code: 'auth/jwt-invalid-service-account'
|
|
520
|
+
},
|
|
521
|
+
JWT_MISSING_PRIVATE_KEY: {
|
|
522
|
+
message: 'Private key is missing from service account configuration.',
|
|
523
|
+
code: 'auth/jwt-missing-private-key'
|
|
524
|
+
},
|
|
525
|
+
JWT_MISSING_CLIENT_EMAIL: {
|
|
526
|
+
message: 'Client email is missing from service account configuration.',
|
|
527
|
+
code: 'auth/jwt-missing-client-email'
|
|
528
|
+
},
|
|
529
|
+
// Token Format Errors
|
|
530
|
+
JWT_MALFORMED_HEADER: {
|
|
531
|
+
message: 'JWT header is malformed or missing required fields.',
|
|
532
|
+
code: 'auth/jwt-malformed-header'
|
|
533
|
+
},
|
|
534
|
+
JWT_MALFORMED_PAYLOAD: {
|
|
535
|
+
message: 'JWT payload is malformed or missing required claims.',
|
|
536
|
+
code: 'auth/jwt-malformed-payload'
|
|
537
|
+
},
|
|
538
|
+
JWT_INVALID_ALGORITHM: {
|
|
539
|
+
message: 'JWT uses an unsupported or invalid algorithm.',
|
|
540
|
+
code: 'auth/jwt-invalid-algorithm'
|
|
541
|
+
},
|
|
542
|
+
// Audience/Issuer Validation Errors
|
|
543
|
+
JWT_INVALID_AUDIENCE: {
|
|
544
|
+
message: 'JWT audience claim does not match expected value.',
|
|
545
|
+
code: 'auth/jwt-invalid-audience'
|
|
546
|
+
},
|
|
547
|
+
JWT_INVALID_ISSUER: {
|
|
548
|
+
message: 'JWT issuer claim does not match expected value.',
|
|
549
|
+
code: 'auth/jwt-invalid-issuer'
|
|
550
|
+
},
|
|
551
|
+
JWT_INVALID_SUBJECT: {
|
|
552
|
+
message: 'JWT subject claim is invalid or missing.',
|
|
553
|
+
code: 'auth/jwt-invalid-subject'
|
|
554
|
+
}
|
|
555
|
+
};
|
|
556
|
+
export const GitHubErrorInfo = {
|
|
557
|
+
GITHUB_CODE_EXCHANGE_FAILED: {
|
|
558
|
+
message: 'Failed to exchange authorization code for GitHub access token.',
|
|
559
|
+
code: 'auth/github-code-exchange-failed'
|
|
560
|
+
},
|
|
561
|
+
GITHUB_INCORRECT_CLIENT_CREDENTIALS: {
|
|
562
|
+
message: 'The GitHub client credentials are incorrect.',
|
|
563
|
+
code: 'auth/github-incorrect-client-credentials'
|
|
564
|
+
},
|
|
565
|
+
GITHUB_REDIRECT_URI_MISMATCH: {
|
|
566
|
+
message: 'The GitHub redirect URI does not match the one configured for the app.',
|
|
567
|
+
code: 'auth/github-redirect-uri-mismatch'
|
|
568
|
+
},
|
|
569
|
+
GITHUB_BAD_VERIFICATION_CODE: {
|
|
570
|
+
message: 'The GitHub verification code is incorrect or expired.',
|
|
571
|
+
code: 'auth/github-bad-verification-code'
|
|
572
|
+
},
|
|
573
|
+
GITHUB_UNVERIFIED_USER_EMAIL: {
|
|
574
|
+
message: 'The GitHub user email is unverified.',
|
|
575
|
+
code: 'auth/github-unverified-user-email'
|
|
576
|
+
},
|
|
577
|
+
GITHUB_ACCESS_DENIED: {
|
|
578
|
+
message: 'User denied the GitHub OAuth authorization request.',
|
|
579
|
+
code: 'auth/github-access-denied'
|
|
580
|
+
},
|
|
581
|
+
GITHUB_UNSUPPORTED_GRANT_TYPE: {
|
|
582
|
+
message: 'The GitHub OAuth grant type is not supported.',
|
|
583
|
+
code: 'auth/github-unsupported-grant-type'
|
|
584
|
+
},
|
|
585
|
+
GITHUB_INVALID_CLIENT: {
|
|
586
|
+
message: 'The GitHub OAuth client is invalid.',
|
|
587
|
+
code: 'auth/github-invalid-client'
|
|
588
|
+
},
|
|
589
|
+
GITHUB_INVALID_REQUEST: {
|
|
590
|
+
message: 'The GitHub OAuth request is malformed or missing required parameters.',
|
|
591
|
+
code: 'auth/github-invalid-request'
|
|
592
|
+
},
|
|
593
|
+
GITHUB_UNAUTHORIZED_CLIENT: {
|
|
594
|
+
message: 'The GitHub client is not authorized to request an access token.',
|
|
595
|
+
code: 'auth/github-unauthorized-client'
|
|
596
|
+
},
|
|
597
|
+
GITHUB_INVALID_SCOPE: {
|
|
598
|
+
message: 'The requested GitHub OAuth scope is invalid or unknown.',
|
|
599
|
+
code: 'auth/github-invalid-scope'
|
|
600
|
+
},
|
|
601
|
+
GITHUB_SERVER_ERROR: {
|
|
602
|
+
message: 'GitHub OAuth server encountered an error.',
|
|
603
|
+
code: 'auth/github-server-error'
|
|
604
|
+
},
|
|
605
|
+
GITHUB_TEMPORARILY_UNAVAILABLE: {
|
|
606
|
+
message: 'GitHub OAuth server is temporarily unavailable.',
|
|
607
|
+
code: 'auth/github-temporarily-unavailable'
|
|
608
|
+
},
|
|
609
|
+
GITHUB_TOKEN_REQUEST_FAILED: {
|
|
610
|
+
message: 'Failed to request token from GitHub OAuth endpoint.',
|
|
611
|
+
code: 'auth/github-token-request-failed'
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
export const GoogleErrorInfo = {
|
|
615
|
+
GOOGLE_CODE_EXCHANGE_FAILED: {
|
|
616
|
+
message: 'Failed to exchange authorization code for Google ID token.',
|
|
617
|
+
code: 'auth/google-code-exchange-failed'
|
|
618
|
+
},
|
|
619
|
+
GOOGLE_INVALID_GRANT: {
|
|
620
|
+
message: 'The provided authorization grant is invalid, expired, revoked, or does not match the redirection URI.',
|
|
621
|
+
code: 'auth/google-invalid-grant'
|
|
622
|
+
},
|
|
623
|
+
GOOGLE_INVALID_CLIENT: {
|
|
624
|
+
message: 'The Google OAuth client credentials are invalid.',
|
|
625
|
+
code: 'auth/google-invalid-client'
|
|
626
|
+
},
|
|
627
|
+
GOOGLE_INVALID_REQUEST: {
|
|
628
|
+
message: 'The Google OAuth request is malformed or missing required parameters.',
|
|
629
|
+
code: 'auth/google-invalid-request'
|
|
630
|
+
},
|
|
631
|
+
GOOGLE_ACCESS_DENIED: {
|
|
632
|
+
message: 'User denied the Google OAuth authorization request.',
|
|
633
|
+
code: 'auth/google-access-denied'
|
|
634
|
+
},
|
|
635
|
+
GOOGLE_UNSUPPORTED_RESPONSE_TYPE: {
|
|
636
|
+
message: 'The Google OAuth response type is not supported.',
|
|
637
|
+
code: 'auth/google-unsupported-response-type'
|
|
638
|
+
},
|
|
639
|
+
GOOGLE_INVALID_SCOPE: {
|
|
640
|
+
message: 'The requested Google OAuth scope is invalid or unknown.',
|
|
641
|
+
code: 'auth/google-invalid-scope'
|
|
642
|
+
},
|
|
643
|
+
GOOGLE_SERVER_ERROR: {
|
|
644
|
+
message: 'Google OAuth server encountered an error.',
|
|
645
|
+
code: 'auth/google-server-error'
|
|
646
|
+
},
|
|
647
|
+
GOOGLE_TEMPORARILY_UNAVAILABLE: {
|
|
648
|
+
message: 'Google OAuth server is temporarily unavailable.',
|
|
649
|
+
code: 'auth/google-temporarily-unavailable'
|
|
650
|
+
},
|
|
651
|
+
JWT_SIGN_FAILED: {
|
|
652
|
+
message: 'Failed to sign JWT for service account authentication.',
|
|
653
|
+
code: 'auth/jwt-sign-failed'
|
|
654
|
+
},
|
|
655
|
+
JWT_DATA_MISSING: {
|
|
656
|
+
message: 'No JWT data was returned from signing process.',
|
|
657
|
+
code: 'auth/jwt-data-missing'
|
|
658
|
+
},
|
|
659
|
+
SERVICE_ACCOUNT_TOKEN_FAILED: {
|
|
660
|
+
message: 'Failed to obtain service account access token.',
|
|
661
|
+
code: 'auth/service-account-token-failed'
|
|
662
|
+
},
|
|
663
|
+
GOOGLE_TOKEN_REQUEST_FAILED: {
|
|
664
|
+
message: 'Failed to request token from Google OAuth endpoint.',
|
|
665
|
+
code: 'auth/google-token-request-failed'
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
export const FirebaseEndpointErrorInfo = {
|
|
669
|
+
// Authentication Errors
|
|
670
|
+
ENDPOINT_INVALID_CREDENTIAL: {
|
|
671
|
+
message: 'Invalid credentials provided to Firebase endpoint.',
|
|
672
|
+
code: 'auth/endpoint-invalid-credential'
|
|
673
|
+
},
|
|
674
|
+
ENDPOINT_USER_NOT_FOUND: {
|
|
675
|
+
message: 'No user found for the provided identifier.',
|
|
676
|
+
code: 'auth/endpoint-user-not-found'
|
|
677
|
+
},
|
|
678
|
+
ENDPOINT_INVALID_ID_TOKEN: {
|
|
679
|
+
message: 'The provided ID token is invalid or expired.',
|
|
680
|
+
code: 'auth/endpoint-invalid-id-token'
|
|
681
|
+
},
|
|
682
|
+
ENDPOINT_INVALID_REFRESH_TOKEN: {
|
|
683
|
+
message: 'The provided refresh token is invalid or expired.',
|
|
684
|
+
code: 'auth/endpoint-invalid-refresh-token'
|
|
685
|
+
},
|
|
686
|
+
ENDPOINT_INVALID_CUSTOM_TOKEN: {
|
|
687
|
+
message: 'The provided custom token is invalid or malformed.',
|
|
688
|
+
code: 'auth/endpoint-invalid-custom-token'
|
|
689
|
+
},
|
|
690
|
+
ENDPOINT_TOKEN_EXPIRED: {
|
|
691
|
+
message: 'The authentication token has expired.',
|
|
692
|
+
code: 'auth/endpoint-token-expired'
|
|
693
|
+
},
|
|
694
|
+
ENDPOINT_USER_DISABLED: {
|
|
695
|
+
message: 'The user account has been disabled.',
|
|
696
|
+
code: 'auth/endpoint-user-disabled'
|
|
697
|
+
},
|
|
698
|
+
// Authorization Errors
|
|
699
|
+
ENDPOINT_PERMISSION_DENIED: {
|
|
700
|
+
message: 'Permission denied for this Firebase operation.',
|
|
701
|
+
code: 'auth/endpoint-permission-denied'
|
|
702
|
+
},
|
|
703
|
+
ENDPOINT_INSUFFICIENT_PERMISSION: {
|
|
704
|
+
message: 'Insufficient permission to access this Firebase resource.',
|
|
705
|
+
code: 'auth/endpoint-insufficient-permission'
|
|
706
|
+
},
|
|
707
|
+
ENDPOINT_UNAUTHORIZED: {
|
|
708
|
+
message: 'Request is not authorized to access Firebase endpoint.',
|
|
709
|
+
code: 'auth/endpoint-unauthorized'
|
|
710
|
+
},
|
|
711
|
+
ENDPOINT_FORBIDDEN: {
|
|
712
|
+
message: 'Access to Firebase endpoint is forbidden.',
|
|
713
|
+
code: 'auth/endpoint-forbidden'
|
|
714
|
+
},
|
|
715
|
+
// Rate Limiting & Quota
|
|
716
|
+
ENDPOINT_QUOTA_EXCEEDED: {
|
|
717
|
+
message: 'Firebase API quota exceeded. Please try again later.',
|
|
718
|
+
code: 'auth/endpoint-quota-exceeded'
|
|
719
|
+
},
|
|
720
|
+
ENDPOINT_TOO_MANY_REQUESTS: {
|
|
721
|
+
message: 'Too many requests to Firebase endpoint. Please try again later.',
|
|
722
|
+
code: 'auth/endpoint-too-many-requests'
|
|
723
|
+
},
|
|
724
|
+
ENDPOINT_RATE_LIMITED: {
|
|
725
|
+
message: 'Request rate limited by Firebase service.',
|
|
726
|
+
code: 'auth/endpoint-rate-limited'
|
|
727
|
+
},
|
|
728
|
+
// Service & Network Errors
|
|
729
|
+
ENDPOINT_SERVICE_UNAVAILABLE: {
|
|
730
|
+
message: 'Firebase service is temporarily unavailable.',
|
|
731
|
+
code: 'auth/endpoint-service-unavailable'
|
|
732
|
+
},
|
|
733
|
+
ENDPOINT_NETWORK_ERROR: {
|
|
734
|
+
message: 'Network error occurred during Firebase API request.',
|
|
735
|
+
code: 'auth/endpoint-network-error'
|
|
736
|
+
},
|
|
737
|
+
ENDPOINT_TIMEOUT: {
|
|
738
|
+
message: 'Request to Firebase endpoint timed out.',
|
|
739
|
+
code: 'auth/endpoint-timeout'
|
|
740
|
+
},
|
|
741
|
+
ENDPOINT_INTERNAL_ERROR: {
|
|
742
|
+
message: 'Internal error occurred in Firebase service.',
|
|
743
|
+
code: 'auth/endpoint-internal-error'
|
|
744
|
+
},
|
|
745
|
+
ENDPOINT_BAD_GATEWAY: {
|
|
746
|
+
message: 'Bad gateway response from Firebase service.',
|
|
747
|
+
code: 'auth/endpoint-bad-gateway'
|
|
748
|
+
},
|
|
749
|
+
// Parameter & Request Errors
|
|
750
|
+
ENDPOINT_INVALID_ARGUMENT: {
|
|
751
|
+
message: 'Invalid argument provided to Firebase endpoint.',
|
|
752
|
+
code: 'auth/endpoint-invalid-argument'
|
|
753
|
+
},
|
|
754
|
+
ENDPOINT_MISSING_PARAMETER: {
|
|
755
|
+
message: 'Required parameter is missing from Firebase request.',
|
|
756
|
+
code: 'auth/endpoint-missing-parameter'
|
|
757
|
+
},
|
|
758
|
+
ENDPOINT_INVALID_REQUEST: {
|
|
759
|
+
message: 'The request to Firebase endpoint is invalid or malformed.',
|
|
760
|
+
code: 'auth/endpoint-invalid-request'
|
|
761
|
+
},
|
|
762
|
+
ENDPOINT_INVALID_PROJECT_ID: {
|
|
763
|
+
message: 'The provided project ID is invalid.',
|
|
764
|
+
code: 'auth/endpoint-invalid-project-id'
|
|
765
|
+
},
|
|
766
|
+
ENDPOINT_INVALID_API_KEY: {
|
|
767
|
+
message: 'The provided API key is invalid.',
|
|
768
|
+
code: 'auth/endpoint-invalid-api-key'
|
|
769
|
+
},
|
|
770
|
+
// Provider-Specific Errors
|
|
771
|
+
ENDPOINT_INVALID_PROVIDER_ID: {
|
|
772
|
+
message: 'The authentication provider ID is invalid.',
|
|
773
|
+
code: 'auth/endpoint-invalid-provider-id'
|
|
774
|
+
},
|
|
775
|
+
ENDPOINT_PROVIDER_NOT_ENABLED: {
|
|
776
|
+
message: 'The authentication provider is not enabled for this project.',
|
|
777
|
+
code: 'auth/endpoint-provider-not-enabled'
|
|
778
|
+
},
|
|
779
|
+
ENDPOINT_INVALID_PROVIDER_TOKEN: {
|
|
780
|
+
message: 'The provider token is invalid or expired.',
|
|
781
|
+
code: 'auth/endpoint-invalid-provider-token'
|
|
782
|
+
},
|
|
783
|
+
// Session Cookie Errors
|
|
784
|
+
ENDPOINT_INVALID_SESSION_COOKIE: {
|
|
785
|
+
message: 'The provided session cookie is invalid.',
|
|
786
|
+
code: 'auth/endpoint-invalid-session-cookie'
|
|
787
|
+
},
|
|
788
|
+
ENDPOINT_SESSION_COOKIE_EXPIRED: {
|
|
789
|
+
message: 'The session cookie has expired.',
|
|
790
|
+
code: 'auth/endpoint-session-cookie-expired'
|
|
791
|
+
},
|
|
792
|
+
ENDPOINT_INVALID_DURATION: {
|
|
793
|
+
message: 'Invalid session duration specified.',
|
|
794
|
+
code: 'auth/endpoint-invalid-duration'
|
|
795
|
+
},
|
|
796
|
+
// Key & Certificate Errors
|
|
797
|
+
ENDPOINT_KEY_FETCH_FAILED: {
|
|
798
|
+
message: 'Failed to fetch public keys from Firebase.',
|
|
799
|
+
code: 'auth/endpoint-key-fetch-failed'
|
|
800
|
+
},
|
|
801
|
+
ENDPOINT_INVALID_KEY_FORMAT: {
|
|
802
|
+
message: 'The public key format is invalid.',
|
|
803
|
+
code: 'auth/endpoint-invalid-key-format'
|
|
804
|
+
},
|
|
805
|
+
ENDPOINT_CERTIFICATE_ERROR: {
|
|
806
|
+
message: 'Error with Firebase certificate validation.',
|
|
807
|
+
code: 'auth/endpoint-certificate-error'
|
|
808
|
+
},
|
|
809
|
+
// Generic Endpoint Errors
|
|
810
|
+
ENDPOINT_OPERATION_FAILED: {
|
|
811
|
+
message: 'Firebase endpoint operation failed.',
|
|
812
|
+
code: 'auth/endpoint-operation-failed'
|
|
813
|
+
},
|
|
814
|
+
ENDPOINT_UNKNOWN_ERROR: {
|
|
815
|
+
message: 'An unknown error occurred in Firebase endpoint.',
|
|
816
|
+
code: 'auth/endpoint-unknown-error'
|
|
817
|
+
},
|
|
818
|
+
ENDPOINT_PARSE_ERROR: {
|
|
819
|
+
message: 'Failed to parse Firebase API response.',
|
|
820
|
+
code: 'auth/endpoint-parse-error'
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
//# sourceMappingURL=auth-error-codes.js.map
|