{"action":"closed","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/451","labels_url":"https://api.github.com/repos/meanjs/mean/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/451/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/451/events","html_url":"https://github.com/meanjs/mean/issues/451","id":60075538,"number":451,"title":"Session store should use mongoose for persisting sessions","user":{"login":"edin-m","id":5385371,"avatar_url":"https://avatars.githubusercontent.com/u/5385371?v=3","gravatar_id":"","url":"https://api.github.com/users/edin-m","html_url":"https://github.com/edin-m","followers_url":"https://api.github.com/users/edin-m/followers","following_url":"https://api.github.com/users/edin-m/following{/other_user}","gists_url":"https://api.github.com/users/edin-m/gists{/gist_id}","starred_url":"https://api.github.com/users/edin-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edin-m/subscriptions","organizations_url":"https://api.github.com/users/edin-m/orgs","repos_url":"https://api.github.com/users/edin-m/repos","events_url":"https://api.github.com/users/edin-m/events{/privacy}","received_events_url":"https://api.github.com/users/edin-m/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/question","name":"question","color":"cc317c"},{"url":"https://api.github.com/repos/meanjs/mean/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-03-06T08:58:01Z","updated_at":"2015-03-07T16:42:51Z","closed_at":"2015-03-07T16:42:51Z","body":"Currently we are using connect-mongo to store sessions. However this can complicate things if one were to use testing environment without database. When mocking with mockgoose there is issue because having connect-mongo mongo db is used directly. \r\n\r\nIf we use session storage through mongoose then we would be able to mock entire underlying mongoose layer; and maybe sometime later use mongoose api to connect to other backends.\r\n\r\nIs something like this possible, does it make sense?"}}