Xeplr OS / Services

@xeplr/auth

Pluggable authentication service: register, login, forgot/reset password, RBAC, multi-tenancy

Install

npm install @xeplr/auth

Peer dependencies you provide: express

The idea

It refuses to start without a REDIS_PREFIX of your own, because two apps sharing one Redis would otherwise serve each other’s menus and API permissions with no error. Menus have a key that code and roles match on and a label people can rename from the app, and the startup banner reports whether email can actually be sent.

Where it sits

Part of Services — long-running pieces. Each one boots with the same init() / start() / router() shape and mounts into an Express app you already have.

Builds on

Third-party dependencies

  • bcrypt
  • ioredis
  • jsonwebtoken
  • multer

Documentation for @xeplr/auth is in its README on npm.

These packages are what Xeplr Analytics is made of

If you are assembling this yourself, it may be worth seeing the assembled version first.