Skip to content

Commit

Permalink
chore: removes message warning in auth-client (#948)
Browse files Browse the repository at this point in the history
  • Loading branch information
krpeacock authored Oct 24, 2024
1 parent 343eb09 commit cae3568
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions packages/auth-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit cae3568

Please sign in to comment.