File tree 5 files changed +7
-7
lines changed
5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1603,7 +1603,7 @@ export abstract class AbstractAuthRequestHandler {
1603
1603
* @param email - The email of the user the link is being sent to.
1604
1604
* @param actionCodeSettings - The optional action code setings which defines whether
1605
1605
* the link is to be handled by a mobile app and the additional state information to be passed in the
1606
- * deep link, etc. Required when requestType == 'EMAIL_SIGNIN'
1606
+ * deep link, etc. Required when requestType === 'EMAIL_SIGNIN'
1607
1607
* @param newEmail - The email address the account is being updated to.
1608
1608
* Required only for VERIFY_AND_CHANGE_EMAIL requests.
1609
1609
* @returns A promise that resolves with the email action link.
Original file line number Diff line number Diff line change @@ -1517,7 +1517,7 @@ export class OIDCConfig implements OIDCAuthProviderConfig {
1517
1517
const allKeys = Object . keys ( options . responseType ) . length ;
1518
1518
const enabledCount = Object . values ( options . responseType ) . filter ( Boolean ) . length ;
1519
1519
// Only one of OAuth response types can be set to true.
1520
- if ( allKeys > 1 && enabledCount != 1 ) {
1520
+ if ( allKeys > 1 && enabledCount !== 1 ) {
1521
1521
throw new FirebaseAuthError (
1522
1522
AuthClientErrorCode . INVALID_OAUTH_RESPONSETYPE ,
1523
1523
'Only exactly one OAuth responseType should be set to true.' ,
@@ -1872,7 +1872,7 @@ export class RecaptchaAuthConfig implements RecaptchaConfig {
1872
1872
} ) ;
1873
1873
}
1874
1874
1875
- if ( typeof options . useAccountDefender != 'undefined' ) {
1875
+ if ( typeof options . useAccountDefender !== 'undefined' ) {
1876
1876
if ( ! validator . isBoolean ( options . useAccountDefender ) ) {
1877
1877
throw new FirebaseAuthError (
1878
1878
AuthClientErrorCode . INVALID_CONFIG ,
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ export class Tenant {
287
287
MultiFactorAuthConfig . buildServerRequest ( request . multiFactorConfig ) ;
288
288
}
289
289
// Validate SMS Regions Config if provided.
290
- if ( typeof request . smsRegionConfig != 'undefined' ) {
290
+ if ( typeof request . smsRegionConfig !== 'undefined' ) {
291
291
SmsRegionsAuthConfig . validate ( request . smsRegionConfig ) ;
292
292
}
293
293
// Validate reCAPTCHAConfig type if provided.
Original file line number Diff line number Diff line change @@ -466,7 +466,7 @@ export class FirebaseTokenVerifier {
466
466
private safeDecode ( jwtToken : string ) : Promise < DecodedToken > {
467
467
return decodeJwt ( jwtToken )
468
468
. catch ( ( err : JwtError ) => {
469
- if ( err . code == JwtErrorCode . INVALID_ARGUMENT ) {
469
+ if ( err . code === JwtErrorCode . INVALID_ARGUMENT ) {
470
470
const verifyJwtTokenDocsMessage = ` See ${ this . tokenInfo . url } ` +
471
471
`for details on how to retrieve ${ this . shortNameArticle } ${ this . tokenInfo . shortName } .` ;
472
472
const errorMessage = `Decoding ${ this . tokenInfo . jwtName } failed. Make sure you passed ` +
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export class RemoteConfigApiClient {
110
110
public publishTemplate ( template : RemoteConfigTemplate , options ?: { force : boolean } ) : Promise < RemoteConfigTemplate > {
111
111
template = this . validateInputRemoteConfigTemplate ( template ) ;
112
112
let ifMatch : string = template . etag ;
113
- if ( options && options . force == true ) {
113
+ if ( options && options . force === true ) {
114
114
// setting `If-Match: *` forces the Remote Config template to be updated
115
115
// and circumvent the ETag, and the protection from that it provides.
116
116
ifMatch = '*' ;
@@ -244,7 +244,7 @@ export class RemoteConfigApiClient {
244
244
* @param {string } customEtag A custom etag to replace the etag fom the API response (Optional).
245
245
*/
246
246
private toRemoteConfigTemplate ( resp : HttpResponse , customEtag ?: string ) : RemoteConfigTemplate {
247
- const etag = ( typeof customEtag == 'undefined' ) ? resp . headers [ 'etag' ] : customEtag ;
247
+ const etag = ( typeof customEtag === 'undefined' ) ? resp . headers [ 'etag' ] : customEtag ;
248
248
this . validateEtag ( etag ) ;
249
249
return {
250
250
conditions : resp . data . conditions ,
You can’t perform that action at this time.
0 commit comments