Authentication Service
This is the service which give you the auth functionalities to your application. with this you can do user registration, login, jwt token generation with only one functions
examples
- User logins
const {authLogin} = require('authentication-service');
const response = await authLogin({username, password});
- User Regitrations
const {authRegister} = require('authentication-service');
const response = await authRegister({username, password, firstName, LastName, age, gender});
to run migrations
Install the cli package authentication-service-cli
npm install -g authentication-service-cli
Then run migrations
Environment variable
JWT_SECRET | token secret