fix: set cookie expiry to match expiry of api key

This commit is contained in:
Aarnav Tale 2024-03-30 02:47:42 -04:00
parent 196c4763e5
commit 02e5e3e92a
No known key found for this signature in database

View File

@ -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) {