mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-24 22:56:26 -08:00
fix: 🐛 Make cookie apply for the whole site instead of just /auth/
This commit is contained in:
parent
5d3fb29c1f
commit
53c9c5fe58
|
@ -60,7 +60,12 @@ export default function (files: Files) {
|
|||
assign token
|
||||
*/
|
||||
|
||||
setCookie(ctx, "auth", auth.create(acc.id, 3 * 24 * 60 * 60 * 1000))
|
||||
setCookie(ctx, "auth", auth.create(acc.id, 3 * 24 * 60 * 60 * 1000), {
|
||||
path: "/",
|
||||
sameSite: "Strict",
|
||||
secure: true,
|
||||
httpOnly: true
|
||||
})
|
||||
return ctx.text("")
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue