mirror of
https://github.com/tale/headplane.git
synced 2026-08-06 12:17:41 +00:00
fix: set cookie expiry to match expiry of api key
This commit is contained in:
@@ -82,7 +82,9 @@ export async function action({ request }: ActionFunctionArgs) {
|
||||
return redirect('/machines', {
|
||||
headers: {
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
'Set-Cookie': await commitSession(session)
|
||||
'Set-Cookie': await commitSession(session, {
|
||||
maxAge: expiresIn
|
||||
})
|
||||
}
|
||||
})
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user