1.0.2 • Published 4 years ago

authentication-srv v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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