@@ -11,7 +11,7 @@ export class JwtError extends Error {
11
11
readonly message : string
12
12
) {
13
13
super ( message ) ;
14
- ( this as any ) . __proto__ = JwtError . prototype
14
+ ( this as any ) . __proto__ = JwtError . prototype ;
15
15
}
16
16
}
17
17
@@ -32,7 +32,7 @@ export enum JwtErrorCode {
32
32
* App client error codes and their default messages.
33
33
*/
34
34
export class AppErrorCodes {
35
- public static INVALID_CREDENTIAL = 'invalid-credential'
35
+ public static INVALID_CREDENTIAL = 'invalid-credential' ;
36
36
}
37
37
38
38
/**
@@ -42,31 +42,31 @@ export class AuthClientErrorCode {
42
42
public static INVALID_ARGUMENT = {
43
43
code : 'argument-error' ,
44
44
message : 'Invalid argument provided.' ,
45
- }
45
+ } ;
46
46
public static INVALID_CREDENTIAL = {
47
47
code : 'invalid-credential' ,
48
48
message : 'Invalid credential object provided.' ,
49
- }
49
+ } ;
50
50
public static ID_TOKEN_EXPIRED = {
51
51
code : 'id-token-expired' ,
52
52
message : 'The provided Firebase ID token is expired.' ,
53
- }
53
+ } ;
54
54
public static ID_TOKEN_REVOKED = {
55
55
code : 'id-token-revoked' ,
56
56
message : 'The Firebase ID token has been revoked.' ,
57
- }
57
+ } ;
58
58
public static INTERNAL_ERROR = {
59
59
code : 'internal-error' ,
60
60
message : 'An internal error has occurred.' ,
61
- }
61
+ } ;
62
62
public static USER_NOT_FOUND = {
63
63
code : 'user-not-found' ,
64
64
message : 'There is no user record corresponding to the provided identifier.' ,
65
- }
65
+ } ;
66
66
public static USER_DISABLED = {
67
67
code : 'user-disabled' ,
68
68
message : 'The user record is disabled.' ,
69
- }
69
+ } ;
70
70
}
71
71
72
72
/**
@@ -124,25 +124,25 @@ export class FirebaseError extends Error implements FirebaseErrorInterface {
124
124
// Set the prototype explicitly. See the following link for more details:
125
125
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
126
126
/* tslint:enable:max-line-length */
127
- ( this as any ) . __proto__ = FirebaseError . prototype
127
+ ( this as any ) . __proto__ = FirebaseError . prototype ;
128
128
}
129
129
130
130
/** @returns The error code. */
131
131
public get code ( ) : string {
132
- return this . errorInfo . code
132
+ return this . errorInfo . code ;
133
133
}
134
134
135
135
/** @returns The error message. */
136
136
public get message ( ) : string {
137
- return this . errorInfo . message
137
+ return this . errorInfo . message ;
138
138
}
139
139
140
140
/** @returns The object representation of the error. */
141
141
public toJSON ( ) : object {
142
142
return {
143
143
code : this . code ,
144
144
message : this . message ,
145
- }
145
+ } ;
146
146
}
147
147
}
148
148
@@ -177,7 +177,7 @@ export class PrefixedFirebaseError extends FirebaseError {
177
177
// Set the prototype explicitly. See the following link for more details:
178
178
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
179
179
/* tslint:enable:max-line-length */
180
- ( this as any ) . __proto__ = PrefixedFirebaseError . prototype
180
+ ( this as any ) . __proto__ = PrefixedFirebaseError . prototype ;
181
181
}
182
182
183
183
/**
@@ -188,7 +188,7 @@ export class PrefixedFirebaseError extends FirebaseError {
188
188
* @returns True if the code matches, false otherwise.
189
189
*/
190
190
public hasCode ( code : string ) : boolean {
191
- return `${ this . codePrefix } /${ code } ` === this . code
191
+ return `${ this . codePrefix } /${ code } ` === this . code ;
192
192
}
193
193
}
194
194
@@ -209,6 +209,6 @@ export class FirebaseAuthError extends PrefixedFirebaseError {
209
209
// Set the prototype explicitly. See the following link for more details:
210
210
// https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work
211
211
/* tslint:enable:max-line-length */
212
- ( this as any ) . __proto__ = FirebaseAuthError . prototype
212
+ ( this as any ) . __proto__ = FirebaseAuthError . prototype ;
213
213
}
214
214
}
0 commit comments