@citywide/auth
v1.1.2
Published
This is for using common authentication inside the application
Downloads
13
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
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)