From 603dc982247130dee516fc1c54facf2c179ef1b7 Mon Sep 17 00:00:00 2001 From: Nik <2661899+CodeSchwert@users.noreply.github.com> Date: Thu, 5 Sep 2024 12:50:59 +1200 Subject: [PATCH] refactor: game bridge silent logout option to boolean input (#2139) --- packages/game-bridge/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/game-bridge/src/index.ts b/packages/game-bridge/src/index.ts index 35bce75434..633d75a871 100644 --- a/packages/game-bridge/src/index.ts +++ b/packages/game-bridge/src/index.ts @@ -220,7 +220,7 @@ window.callFunction = async (jsonData: string) => { case PASSPORT_FUNCTIONS.init: { const request = JSON.parse(data); const redirect: string | null = request?.redirectUri; - const logoutMode: 'silent' | 'redirect' = request?.logoutMode === 'silent' ? 'silent' : 'redirect'; + const logoutMode: 'silent' | 'redirect' = request?.isSilentLogout === true ? 'silent' : 'redirect'; if (!passportClient) { const passportConfig = { baseConfig: new config.ImmutableConfiguration({