Browse Source

Extending logout TTL from a day to a week.

pull/3648/head
mike12345567 5 years ago
parent
commit
e6b3521ed5
  1. 3
      packages/auth/src/security/sessions.js

3
packages/auth/src/security/sessions.js

@ -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()

Loading…
Cancel
Save