feat(core)!: Set the secure flag on issued cookies (#8812)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-03-05 18:57:41 +01:00
committed by GitHub
parent 2b0e14e936
commit 0818824a72
6 changed files with 44 additions and 12 deletions

View File

@@ -82,6 +82,7 @@ export class AuthService {
maxAge: this.jwtExpiration * Time.seconds.toMilliseconds,
httpOnly: true,
sameSite: 'lax',
secure: config.getEnv('secure_cookie'),
});
}