diff --git a/packages/game-bridge/src/index.ts b/packages/game-bridge/src/index.ts index e5cab98f4d..35bce75434 100644 --- a/packages/game-bridge/src/index.ts +++ b/packages/game-bridge/src/index.ts @@ -220,6 +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'; if (!passportClient) { const passportConfig = { baseConfig: new config.ImmutableConfiguration({ @@ -231,6 +232,7 @@ window.callFunction = async (jsonData: string) => { redirectUri: redirect ?? redirectUri, logoutRedirectUri: request?.logoutRedirectUri, crossSdkBridgeEnabled: true, + logoutMode, }; passportClient = new passport.Passport(passportConfig); trackDuration(moduleName, 'initialisedPassport', mt(markStart));