meteor-stale-session
meteor-stale-session copied to clipboard
Feature/UsersRoles
I didn't want sessions to expire for specific user roles so I had to add this usersRoles option. This might be a useful feature for other users so I decided to submit as a pull request. The user roles will default to null if its not provided so it shouldn't affect your other users.
You can now specify which users you do not want the sessions to expire for.
+1
Not sure how I missed this when it was first posted. I've got a lot of work on at the minute but will try to get a moment to look into this. I was thinking it might be possible to put in a more general mechanism to register a callback that could veto the decision in a user definable way i.e. not just on user roles but on any criteria you chose.
A callback would certainly be a good logical step. I definitely like the idea of being able to define things based on any "criteria" :+1: