authentication-srv

1.0.2 • Public • Published

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

Dependencies (13)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i authentication-srv

    Weekly Downloads

    1

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    15.3 kB

    Total Files

    23

    Last publish

    Collaborators

    • sahmwanga