Skip to content

Commit b35e476

Browse files
committed
Add domain test as well
1 parent 1ecea9b commit b35e476

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ export function registerAuth(clientPlatform: ClientPlatform): void {
6464
AuthErrorCode.INVALID_API_KEY,
6565
{ appName: app.name }
6666
);
67+
// Auth domain is optional if IdP sign in isn't being used
68+
_assert(!(authDomain?.includes(':')), AuthErrorCode.ARGUMENT_ERROR, {appName: app.name});
6769
const config: ConfigInternal = {
6870
apiKey,
6971
authDomain,

0 commit comments

Comments
 (0)