Persist cookies longer than session
This commit is contained in:
parent
2a0e22a122
commit
a7abdfdc25
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ async function getManagedGuilds(event) {
|
||||||
* @returns {ReturnType<typeof h3.useSession<{userID?: string, mxid?: string, managedGuilds?: string[], state?: string, selfService?: boolean, password?: string}>>}
|
* @returns {ReturnType<typeof h3.useSession<{userID?: string, mxid?: string, managedGuilds?: string[], state?: string, selfService?: boolean, password?: string}>>}
|
||||||
*/
|
*/
|
||||||
function useSession(event) {
|
function useSession(event) {
|
||||||
return h3.useSession(event, {password: reg.as_token})
|
return h3.useSession(event, {password: reg.as_token, maxAge: 365 * 24 * 60 * 60})
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.getManagedGuilds = getManagedGuilds
|
module.exports.getManagedGuilds = getManagedGuilds
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue