superlogin
superlogin copied to clipboard
logout not cleaning up document in _users
superlogin.logout
, superlogin.logoutUser
, and other forms of logout still leave documents in _users
(attempted with both superlogin
and superlogin-client
)
I think I have the same issue. There are a number of duplicate entries for sl-users in _users that are not cleaned up but I'm not sure if they are supposed to be?
There are quite a few reasons this can occur. One due to this issue I documented #186, then there is the case of logout on expired sessions if you use superlogin-client issue 71. Of course if a user doesn't logout that would also leave sessions active, once the session expires you can periodically call removeExpiredKeys() on the server through an interval on your server.js or as a separate cron job.