Can I have different session expirations based on certain parameters? #1606
|
I was wondering if it's possible to set the ExampleMy app has 2 kinds of users: Customers and Managers. Both user kinds have the same data shape and therefore use the same Lucia session adapter. However, I would like to set the expiration of Customer sessions to 30 days, but only 1 hour for Managers as added security. Do I need a separate Lucia instance for each user kind or is there any way to have a dynamic Thank you in advance. |
Answered by
pilcrowonpaper
Jun 21, 2024
Replies: 1 comment 1 reply
|
No, since Lucia needs to know how long the session is valid for when extending session expirations |
1 reply
Answer selected by
ChrisGV04
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No, since Lucia needs to know how long the session is valid for when extending session expirations