mirror of
https://github.com/tale/headplane.git
synced 2026-09-04 19:25:43 +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', {
|
return redirect('/machines', {
|
||||||
headers: {
|
headers: {
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||||
'Set-Cookie': await commitSession(session)
|
'Set-Cookie': await commitSession(session, {
|
||||||
|
maxAge: expiresIn
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user