perfood / couch-auth

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

Re-introduce redis as optional session adapter #64

Open fynnlyte opened 1 year ago

fynnlyte commented 1 year ago

With https://github.com/perfood/couch-auth/commit/2d182fdb9ac43cebd1b2100d0cb28be4b5d7ef86, session caching in redis was removed in order to simplify the setup and make it compatible with Cloudant.

Since couch-auth is now primarily targeted at self-hosted CouchDB setups and we're transitioning more and more from „offline first“ to „server first“ -> add redis as optional dependency to improve performance of checking token validity.

Maybe use dynamic imports to achieve that?