fix: set cookie expiry to match expiry of api key
This commit is contained in:
parent
196c4763e5
commit
02e5e3e92a
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue