@sanjeevkumar-ditstek/auth-package
v1.0.0
Published
This is for using common authentication inside the application
Downloads
1
Readme
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)