mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 13:11:02 +00:00
fix(api): frontend sessions expire after 15 minutes (now 1d)
This commit is contained in:
parent
367f37555f
commit
8c5f495ce5
1 changed files with 1 additions and 3 deletions
|
|
@ -28,9 +28,7 @@ export class AuthController {
|
||||||
|
|
||||||
// Transmit accessToken to Frontend
|
// Transmit accessToken to Frontend
|
||||||
res.cookie("listory_access_token", accessToken, {
|
res.cookie("listory_access_token", accessToken, {
|
||||||
// SPA will directly read cookie, save it to local storage and delete it
|
maxAge: 24 * 60 * 60 * 1000, // 1 day
|
||||||
// 15 Minutes should be enough
|
|
||||||
maxAge: 15 * 60 * 1000,
|
|
||||||
|
|
||||||
// Must be readable by SPA
|
// Must be readable by SPA
|
||||||
httpOnly: false,
|
httpOnly: false,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue