1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

Extending logout TTL from a day to a week.

This commit is contained in:
mike12345567 2021-12-03 11:17:48 +00:00
parent a7e779639d
commit d9afc58401

View file

@ -1,6 +1,7 @@
const redis = require("../redis/authRedis")
const EXPIRY_SECONDS = 86400
// a week in seconds
const EXPIRY_SECONDS = 86400 * 7
async function getSessionsForUser(userId) {
const client = await redis.getSessionClient()