Skip to content

Commit

Permalink
Listen to correct Auth event in Player (#220)
Browse files Browse the repository at this point in the history
The `CredentialsProvider` from the Auth module uses a different event `type` (name) than the Player module was expecting.
  • Loading branch information
osmestad authored Oct 15, 2024
1 parent 775e579 commit a2cd8d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/player/src/internal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class CredentialsProviderStore extends EventTarget {

this.#credentialsProvider.bus(event => {
switch (event.detail.type) {
case 'credentialsUpdated':
case 'CredentialsUpdatedMessage':
this.dispatchAuthorized().catch(console.error);
break;
default:
Expand Down

0 comments on commit a2cd8d4

Please sign in to comment.