This commit is contained in:
HAM!DREZA
2024-06-13 16:49:34 +03:30
parent c8bfc3c177
commit 2886e999f1
7 changed files with 149 additions and 50 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ export default defineEventHandler(async (event) => {
setCookie(event, 'token', data.token, {
httpOnly: true,
secure: true,
maxAge: 60 * 60 * 24 * 7, // 1 week
maxAge: 60 * 60 * 24 * 7 , // 1 week
path: '/'
})
return data;