{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/3656","labels_url":"https://api.github.com/repos/meteor/meteor/issues/3656/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/3656/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/3656/events","html_url":"https://github.com/meteor/meteor/issues/3656","id":56777901,"number":3656,"title":"Bug: `loginExpirationInDays`","user":{"login":"mariorodriguespt","id":1017581,"avatar_url":"https://avatars.githubusercontent.com/u/1017581?v=3","gravatar_id":"","url":"https://api.github.com/users/mariorodriguespt","html_url":"https://github.com/mariorodriguespt","followers_url":"https://api.github.com/users/mariorodriguespt/followers","following_url":"https://api.github.com/users/mariorodriguespt/following{/other_user}","gists_url":"https://api.github.com/users/mariorodriguespt/gists{/gist_id}","starred_url":"https://api.github.com/users/mariorodriguespt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mariorodriguespt/subscriptions","organizations_url":"https://api.github.com/users/mariorodriguespt/orgs","repos_url":"https://api.github.com/users/mariorodriguespt/repos","events_url":"https://api.github.com/users/mariorodriguespt/events{/privacy}","received_events_url":"https://api.github.com/users/mariorodriguespt/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Accounts%20(in%20user%20apps)","name":"Project:Accounts (in user apps)","color":"eb6420"},{"url":"https://api.github.com/repos/meteor/meteor/labels/Project:Docs","name":"Project:Docs","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-06T07:05:53Z","updated_at":"2015-02-11T01:13:04Z","closed_at":null,"body":"I want to allow users to check \"Remember me\" at the login page. According to the [documentation](http://docs.meteor.com/#/full/accounts_config), I can run this code anywhere but I don't see this behaviour working in the browser.\r\n\r\nRunning on the client:\r\n\r\n    Accounts.config({\r\n                loginExpirationInDays: null\r\n            });\r\n\r\nWhen I check localStorage I get: Meteor.loginTokenExpires : Sat Feb 07 2015 06:34:22 GMT+0000 (WET)\r\n\r\nIt doesn't matter which number I set on the client, the server defines the expiration date. Bug in the docs?\r\nWhen I don't set a configuration on the server, I get the message on the console: `Accounts.config was called on the client but not on the server; some configuration options may not take effect.`\r\n\r\nWhen I try to set a new value for `loginExpirationInDays` I get the error: `Error: Can't set 'loginExpirationInDays' more than once`\r\n\r\nI want to implement the \"remember me\" feature but It seems like Meteor doesn't provides it. \r\n\r\nIf I was able to set the expiration date on the client or pass some flag to the login method, I could implement it. I also noticed that `services.resume.loginTokens` contains a creation date `when` but I don't see an expiration date. So, does a loginToken expires based on `when` + `loginExpirationInDays` date?\r\n\r\nHow can I safely implement the `Remember me` feature?\r\nAm I missing something?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/73818589","html_url":"https://github.com/meteor/meteor/issues/3656#issuecomment-73818589","issue_url":"https://api.github.com/repos/meteor/meteor/issues/3656","id":73818589,"user":{"login":"glasser","id":16724,"avatar_url":"https://avatars.githubusercontent.com/u/16724?v=3","gravatar_id":"","url":"https://api.github.com/users/glasser","html_url":"https://github.com/glasser","followers_url":"https://api.github.com/users/glasser/followers","following_url":"https://api.github.com/users/glasser/following{/other_user}","gists_url":"https://api.github.com/users/glasser/gists{/gist_id}","starred_url":"https://api.github.com/users/glasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glasser/subscriptions","organizations_url":"https://api.github.com/users/glasser/orgs","repos_url":"https://api.github.com/users/glasser/repos","events_url":"https://api.github.com/users/glasser/events{/privacy}","received_events_url":"https://api.github.com/users/glasser/received_events","type":"User","site_admin":false},"created_at":"2015-02-11T01:13:04Z","updated_at":"2015-02-11T01:13:04Z","body":"Can you please follow our guidelines on how to report a bug: https://github.com/meteor/meteor/wiki/Contributing-to-Meteor#reporting-a-bug-in-meteor\r\n\r\nIt will be a lot easier for us to not be talking past each other if I can literally run the code that you're concerned about. It seems like there are several issues here and it's hard to parse them out without actually having a reproduction."}}