Skip to content

Commit f289aef

Browse files
committed
testing authdomain port number
1 parent 43c8261 commit f289aef

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

packages/auth/src/core/auth/initialize.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ describe('core/auth/initialize', () => {
140140
fakeApp = initializeApp({
141141
apiKey: 'fake-key',
142142
appId: 'fake-app-id',
143-
authDomain: 'fake-auth-domain'
143+
authDomain: 'fake-auth-domain:9999'
144144
});
145145
});
146146

@@ -165,7 +165,7 @@ describe('core/auth/initialize', () => {
165165
apiHost: 'identitytoolkit.googleapis.com',
166166
apiKey: 'fake-key',
167167
apiScheme: 'https',
168-
authDomain: 'fake-auth-domain',
168+
authDomain: 'fake-auth-domain:9999',
169169
clientPlatform: expectedClientPlatform,
170170
sdkClientVersion: expectedSdkClientVersion,
171171
tokenApiHost: 'securetoken.googleapis.com'

packages/auth/src/core/auth/register.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,11 @@ export function registerAuth(clientPlatform: ClientPlatform): void {
7272
AuthErrorCode.INVALID_API_KEY,
7373
{ appName: app.name }
7474
);
75-
75+
console.log("authodomain: "+authDomain);
76+
// Auth domain is optional if IdP sign in isn't being used
77+
_assert(!authDomain?.includes(':'), AuthErrorCode.ARGUMENT_ERROR, {
78+
appName: app.name
79+
});
7680
const config: ConfigInternal = {
7781
apiKey,
7882
authDomain,

0 commit comments

Comments
 (0)