perfood / couch-auth

Powerful authentication for APIs and apps using CouchDB (or Cloudant) with Node >= 14
MIT License
66 stars 19 forks source link

🐛 IDs of session tokens removed by `cleanupExpired` aren't documented in `inactiveSessions` #49

Closed fynnlyte closed 2 years ago

fynnlyte commented 2 years ago

Also type and refactor the session cleanup methods better.

cleanupExpired should use the same functions as when removing sessions for a single user under the hood