diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 5ab233db..a55913ec 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Changed + +- chore: Removes warning that users found unhelpful, when a message originates from other sources than the identity provider in `AuthClient` during authentication. + ## [2.1.3] - 2024-10-23 ### Added diff --git a/packages/auth-client/src/index.ts b/packages/auth-client/src/index.ts index f54d51ca..66c8d409 100644 --- a/packages/auth-client/src/index.ts +++ b/packages/auth-client/src/index.ts @@ -502,9 +502,7 @@ export class AuthClient { private _getEventHandler(identityProviderUrl: URL, options?: AuthClientLoginOptions) { return async (event: MessageEvent) => { if (event.origin !== identityProviderUrl.origin) { - console.warn( - `WARNING: expected origin '${identityProviderUrl.origin}', got '${event.origin}' (ignoring)`, - ); + // Ignore any event that is not from the identity provider return; }