Replies: 1 comment
-
How do you determine if a user is of high-risk data or not? I don't think we would support something like this built-in unless there is interest from more people, but you could do something like this: export default function async auth(req, res) {
const maxAge = await determineUserMaxAge(req, res)
NextAuth(req, res, {
... // rest of your config
session: { maxAge }
})
} If the type is defined by a role or similar saved on the session itself, you could use |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are exploring a scenario where different types of users get different session lengths. For example:
So ideally it would be nice to be able to query the type of user and determine how long their inactive session will last for.
Is this at all possible?
Beta Was this translation helpful? Give feedback.
All reactions