From cb5557b360567251b3a8326aeb62a4768b74a590 Mon Sep 17 00:00:00 2001 From: Ray Foss Date: Mon, 5 Jun 2023 00:12:52 -0500 Subject: [PATCH] Update core.ts --- packages/authentication/src/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/authentication/src/core.ts b/packages/authentication/src/core.ts index 623bc56d40..e03aee6995 100644 --- a/packages/authentication/src/core.ts +++ b/packages/authentication/src/core.ts @@ -199,7 +199,7 @@ export class AuthenticationBase { ) { const { secret, jwtOptions } = this.configuration // Use configuration by default but allow overriding the secret - const jwtSecret = secretOverride || secret + const jwtSecret = globalThis.process?.versions?.webcontainer === undefined ? secretOverride || secret : null // Default jwt options merged with additional options const options = merge({}, jwtOptions, optsOverride)