Skip to content

Commit

Permalink
fix(config): fix cookie config
Browse files Browse the repository at this point in the history
  • Loading branch information
moesjarraf committed Mar 8, 2023
1 parent 76b6437 commit dad8fa7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/modules/config/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,11 @@ export class ConfigService extends NestConfigService {
const secure = this.get<string>('COOKIE_SECURE');

return {
cookie: {
same_site:
sameSite && boolean(sameSite)
? boolean(sameSite)
: sameSite || undefined,
secure: secure ? boolean(secure) : undefined,
},
same_site:
sameSite && boolean(sameSite)
? boolean(sameSite)
: sameSite || undefined,
secure: secure ? boolean(secure) : undefined,
};
}

Expand Down

0 comments on commit dad8fa7

Please sign in to comment.