Skip to content

Commit

Permalink
refactor: game bridge silent logout option to boolean input (#2139)
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeSchwert authored Sep 5, 2024
1 parent 311d459 commit 603dc98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/game-bridge/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 603dc98

Please sign in to comment.