1.0.0 • Published 5 months ago

@sanjeevkumar-ditstek/auth-package v1.0.0

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-package

To import the package

import auth from @sanjeevkumar-ditstek/auth-package

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.0

5 months ago