Skip to content

Commit

Permalink
fix: same site config issue resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
gobeam committed Jan 20, 2022
1 parent 57112eb commit e121865
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ const jwtConfig = config.get('jwt');
const appConfig = config.get('app');
// const isSameSite = process.env.IS_SAME_SITE || appConfig.sameSite;
// for heroku
const isSameSite = process.env.IS_SAME_SITE === 'true';
const isSameSite =
appConfig.sameSite !== null
? appConfig.sameSite
: process.env.IS_SAME_SITE === 'true';
const BASE_OPTIONS: SignOptions = {
issuer: appConfig.appUrl,
audience: appConfig.frontendUrl
Expand Down

0 comments on commit e121865

Please sign in to comment.