Custom loginExpirationInDays Accounts config


#1

Hi there. I wonder if there is a way to allow users to set the loginExpirationInDays individually.

For example check the Evernote’s sign-in form. (‘Remember me for 30 days’ checkbox).


#2

Doesn’t seem to work…

if (Meteor.isClient) {
  Tracker.autorun(function () {
    Accounts.config({ 
      loginExpirationInDays:  Session.get('loginExpirationInDays') || null
    });
  });
}