File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ export interface ErrorMapRetriever extends AuthErrorMap {
359
359
( ) : ErrorMap < AuthErrorCode > ;
360
360
}
361
361
362
- export function _prodErrorMap ( ) : ErrorMap < AuthErrorCode > {
362
+ function _prodErrorMap ( ) : ErrorMap < AuthErrorCode > {
363
363
// We will include this one message in the prod error map since by the very
364
364
// nature of this error, developers will never be able to see the message
365
365
// using the debugErrorMap (which is installed during auth initialization).
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ import {
22
22
_DEFAULT_AUTH_ERROR_FACTORY ,
23
23
AuthErrorCode ,
24
24
AuthErrorParams ,
25
- _prodErrorMap
25
+ prodErrorMap ,
26
+ ErrorMapRetriever
26
27
} from '../errors' ;
27
28
import { _logError } from './log' ;
28
29
@@ -83,7 +84,7 @@ export function _createError<K extends AuthErrorCode>(
83
84
}
84
85
85
86
export function _errorWithCustomMessage ( auth : Auth , code : AuthErrorCode , message : string ) : FirebaseError {
86
- const errorMap = { ..._prodErrorMap ( ) , [ code ] : message } ;
87
+ const errorMap = { ...( prodErrorMap as ErrorMapRetriever ) ( ) , [ code ] : message } ;
87
88
const factory = new ErrorFactory < AuthErrorCode , AuthErrorParams > (
88
89
'auth' ,
89
90
'Firebase' ,
You can’t perform that action at this time.
0 commit comments