@keqin/squirrel-auth
v1.0.16
Published
### Installation ```bash npm i @keqin/squirrel-auth node ace configure @keqin/squirrel-auth ```
Downloads
34
Readme
Squirrel-Auth
Installation
npm i @keqin/squirrel-auth
node ace configure @keqin/squirrel-auth
Set env
DB_CONNECTION=
SESSION_DRIVER=
REDIS_CONNECTION=
SESSION_VALID_TIME=
Init tables
node ace auth:initTable
Register middleware inside your start/kernel.ts
file.
Server.middleware.registerNamed({
squirrelAuth : () => import('@ioc:Keqin/SquirrelAuthMiddleware')
})