File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ import {
11
11
} from './firebase-utils' ;
12
12
13
13
const env : EmulatorEnv = {
14
- FIREBASE_AUTH_EMULATOR_HOST : 'localhost :9099' ,
14
+ FIREBASE_AUTH_EMULATOR_HOST : '127.0.0.1 :9099' ,
15
15
} ;
16
16
17
17
describe ( 'createSessionCookie()' , ( ) => {
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ describe('buildApiUrl', () => {
20
20
it ( 'should build correct url for emulator environment' , ( ) => {
21
21
const projectId = 'test-project' ;
22
22
const apiSettings = new ApiSettings ( 'v1' , '/test-endpoint' ) ;
23
- const env : EmulatorEnv = { FIREBASE_AUTH_EMULATOR_HOST : 'localhost :9099' } ;
24
- const expectedUrl = 'http://localhost :9099/identitytoolkit.googleapis.com/v1/projects/test-project/test-endpoint' ;
23
+ const env : EmulatorEnv = { FIREBASE_AUTH_EMULATOR_HOST : '127.0.0.1 :9099' } ;
24
+ const expectedUrl = 'http://127.0.0.1 :9099/identitytoolkit.googleapis.com/v1/projects/test-project/test-endpoint' ;
25
25
26
26
const result = buildApiUrl ( projectId , apiSettings , env ) ;
27
27
You can’t perform that action at this time.
0 commit comments