We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b794b commit c1f07f1Copy full SHA for c1f07f1
packages-exp/auth-exp/src/core/auth/register.ts
@@ -59,7 +59,15 @@ export function registerAuth(clientPlatform: ClientPlatform): void {
59
const app = container.getProvider('app-exp').getImmediate()!;
60
const { apiKey, authDomain } = app.options;
61
return (app => {
62
- _assert(apiKey, AuthErrorCode.INVALID_API_KEY, { appName: app.name });
+ _assert(
63
+ apiKey && !apiKey.includes(':'),
64
+ AuthErrorCode.INVALID_API_KEY,
65
+ { appName: app.name }
66
+ );
67
+ // Auth domain is optional if IdP sign in isn't being used
68
+ _assert(!authDomain?.includes(':'), AuthErrorCode.ARGUMENT_ERROR, {
69
+ appName: app.name
70
+ });
71
const config: ConfigInternal = {
72
apiKey,
73
authDomain,
0 commit comments