mirror of
https://github.com/System-End/spaces.git
synced 2026-04-19 19:55:17 +00:00
Update src/api/users/auth.route.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
24b7a8c515
commit
d3ada5a689
1 changed files with 1 additions and 1 deletions
|
|
@ -212,7 +212,7 @@ router.post('/login', /* authLimiter, */ async (req, res) => {
|
|||
.returning(['email', 'username', 'authorization', 'is_admin']);
|
||||
|
||||
res.cookie('auth_token', updatedUser.authorization, {
|
||||
httpOnly: false,
|
||||
httpOnly: true,
|
||||
maxAge: 7 * 24 * 60 * 60 * 1000,
|
||||
sameSite: 'strict',
|
||||
secure: process.env.NODE_ENV === 'production'
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue