From 6c7888367b209316bada59c8e35a0682902e533f Mon Sep 17 00:00:00 2001 From: Ray Foss Date: Sat, 3 Jun 2023 13:21:18 -0500 Subject: [PATCH] Supress error message for missing jwt in SB --- packages/authentication/src/service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/authentication/src/service.ts b/packages/authentication/src/service.ts index 58f219143f..c307ca7f0b 100644 --- a/packages/authentication/src/service.ts +++ b/packages/authentication/src/service.ts @@ -174,7 +174,7 @@ export class AuthenticationService // connection and event (login, logout) hooks const { secret, service, entity, entityId } = this.configuration - if (typeof secret !== 'string') { + if (typeof secret !== 'string' && globalThis.process?.versions?.webcontainer === undefined) { throw new Error("A 'secret' must be provided in your authentication configuration") }