Skip to content

Commit

Permalink
Merge branch 'MIJN-6933-cleopatra-herindeling' of github.com:Amsterda…
Browse files Browse the repository at this point in the history
…m/mijn-amsterdam-frontend into MIJN-6933-cleopatra-herindeling
  • Loading branch information
timvanoostrom committed Nov 7, 2023
2 parents b0b0322 + e0e58d5 commit b323c18
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/router-oidc.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as Sentry from '@sentry/node';
import express, { Request, Response } from 'express';
import { attemptSilentLogin, auth } from 'express-openid-connect';
import { FeatureToggle } from '../universal/config';
import { FeatureToggle, IS_PRODUCTION } from '../universal/config';
import { apiSuccessResult } from '../universal/helpers';
import {
AUTH_CALLBACK,
Expand Down Expand Up @@ -305,8 +305,8 @@ function logout(postLogoutRedirectUrl: string) {
res.oidc.logout({
returnTo: postLogoutRedirectUrl,
logoutParams: {
id_token_hint: null,
logout_hint: auth.profile.sid,
id_token_hint: !IS_PRODUCTION ? auth.token : null,
logout_hint: IS_PRODUCTION ? auth.profile.sid : null,
},
});
};
Expand Down

0 comments on commit b323c18

Please sign in to comment.