From a2cd8d4d5024a61f18260d3541fcdacafd5bd132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Smestad?= Date: Tue, 15 Oct 2024 13:15:44 +0200 Subject: [PATCH] Listen to correct Auth event in Player (#220) The `CredentialsProvider` from the Auth module uses a different event `type` (name) than the Player module was expecting. --- packages/player/src/internal/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/player/src/internal/index.ts b/packages/player/src/internal/index.ts index 080deb0d..f888e129 100644 --- a/packages/player/src/internal/index.ts +++ b/packages/player/src/internal/index.ts @@ -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: