1.0.1 • Published 5 months ago

@sanjeevkumar-ditstek/auth v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

Auth Package

This is for using common authentication inside the application

Requirement

Node : 16.x Typescript: 5.x

How to use

To install the package

npm i @sanjeevkumar-ditstek/auth

To import the package

import auth from @sanjeevkumar-ditstek/auth

To get is token is valid

auth.validateToken(TOKEN)

To generate Token

auth.generateToken(USERINFO)

To get Decoded Token information

auth.decodeToken(TOKEN)

1.0.1

5 months ago

1.0.0

5 months ago