Skip to content

Commit 39cf683

Browse files
committed
Restrict the ':' character in API key
1 parent a4b794b commit 39cf683

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function registerAuth(clientPlatform: ClientPlatform): void {
5959
const app = container.getProvider('app-exp').getImmediate()!;
6060
const { apiKey, authDomain } = app.options;
6161
return (app => {
62-
_assert(apiKey, AuthErrorCode.INVALID_API_KEY, { appName: app.name });
62+
_assert(apiKey && !apiKey.includes(':'), AuthErrorCode.INVALID_API_KEY, { appName: app.name });
6363
const config: ConfigInternal = {
6464
apiKey,
6565
authDomain,

0 commit comments

Comments
 (0)