fix: set cookie expiry to match expiry of api key
This commit is contained in:
parent
196c4763e5
commit
02e5e3e92a
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user