meteor-stale-session icon indicating copy to clipboard operation
meteor-stale-session copied to clipboard

Feature/UsersRoles

Open pdiniz13 opened this issue 9 years ago • 3 comments

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.

pdiniz13 avatar Jun 10 '15 21:06 pdiniz13

+1

jeffpatzer avatar Sep 23 '15 22:09 jeffpatzer

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.

lindleycb avatar Sep 24 '15 09:09 lindleycb

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:

jeffpatzer avatar Sep 29 '15 15:09 jeffpatzer