@@ -16,54 +16,53 @@ export class JwtError extends Error {
16
16
* JWT error codes.
17
17
*/
18
18
export enum JwtErrorCode {
19
- INVALID_ARGUMENT = " invalid-argument" ,
20
- INVALID_CREDENTIAL = " invalid-credential" ,
21
- TOKEN_EXPIRED = " token-expired" ,
22
- INVALID_SIGNATURE = " invalid-token" ,
23
- NO_MATCHING_KID = " no-matching-kid-error" ,
24
- NO_KID_IN_HEADER = " no-kid-error" ,
25
- KEY_FETCH_ERROR = " key-fetch-error" ,
19
+ INVALID_ARGUMENT = ' invalid-argument' ,
20
+ INVALID_CREDENTIAL = ' invalid-credential' ,
21
+ TOKEN_EXPIRED = ' token-expired' ,
22
+ INVALID_SIGNATURE = ' invalid-token' ,
23
+ NO_MATCHING_KID = ' no-matching-kid-error' ,
24
+ NO_KID_IN_HEADER = ' no-kid-error' ,
25
+ KEY_FETCH_ERROR = ' key-fetch-error' ,
26
26
}
27
27
28
28
/**
29
29
* App client error codes and their default messages.
30
30
*/
31
31
export class AppErrorCodes {
32
- public static INVALID_CREDENTIAL = " invalid-credential" ;
32
+ public static INVALID_CREDENTIAL = ' invalid-credential' ;
33
33
}
34
34
35
35
/**
36
36
* Auth client error codes and their default messages.
37
37
*/
38
38
export class AuthClientErrorCode {
39
39
public static INVALID_ARGUMENT = {
40
- code : " argument-error" ,
41
- message : " Invalid argument provided." ,
40
+ code : ' argument-error' ,
41
+ message : ' Invalid argument provided.' ,
42
42
} ;
43
43
public static INVALID_CREDENTIAL = {
44
- code : " invalid-credential" ,
45
- message : " Invalid credential object provided." ,
44
+ code : ' invalid-credential' ,
45
+ message : ' Invalid credential object provided.' ,
46
46
} ;
47
47
public static ID_TOKEN_EXPIRED = {
48
- code : " id-token-expired" ,
49
- message : " The provided Firebase ID token is expired." ,
48
+ code : ' id-token-expired' ,
49
+ message : ' The provided Firebase ID token is expired.' ,
50
50
} ;
51
51
public static ID_TOKEN_REVOKED = {
52
- code : " id-token-revoked" ,
53
- message : " The Firebase ID token has been revoked." ,
52
+ code : ' id-token-revoked' ,
53
+ message : ' The Firebase ID token has been revoked.' ,
54
54
} ;
55
55
public static INTERNAL_ERROR = {
56
- code : " internal-error" ,
57
- message : " An internal error has occurred." ,
56
+ code : ' internal-error' ,
57
+ message : ' An internal error has occurred.' ,
58
58
} ;
59
59
public static USER_NOT_FOUND = {
60
- code : "user-not-found" ,
61
- message :
62
- "There is no user record corresponding to the provided identifier." ,
60
+ code : 'user-not-found' ,
61
+ message : 'There is no user record corresponding to the provided identifier.' ,
63
62
} ;
64
63
public static USER_DISABLED = {
65
- code : " user-disabled" ,
66
- message : " The user record is disabled." ,
64
+ code : ' user-disabled' ,
65
+ message : ' The user record is disabled.' ,
67
66
} ;
68
67
}
69
68
@@ -197,7 +196,7 @@ export class PrefixedFirebaseError extends FirebaseError {
197
196
export class FirebaseAuthError extends PrefixedFirebaseError {
198
197
constructor ( info : ErrorInfo , message ?: string ) {
199
198
// Override default message if custom message provided.
200
- super ( " auth" , info . code , message || info . message ) ;
199
+ super ( ' auth' , info . code , message || info . message ) ;
201
200
202
201
/* tslint:disable:max-line-length */
203
202
// Set the prototype explicitly. See the following link for more details:
0 commit comments