Commit f17eac05 by Percy Quispe Huarcaya

feat: Adding token creator and a parser

parent fd5d35e4
......@@ -2,7 +2,8 @@
"name": "security-ndjs-lib",
"version": "1.0.0",
"description": "Library to manage tokens using js",
"main": "index.js",
"main": "src/token.js",
"types": "types/index.d.ts",
"scripts": {
"test": "jest"
},
......
declare module 'security-ndjs-lib' {
export function createJWT(id: string, subject: object, time?: number): string;
export function parseJWT(token: string, id?: string): string; // Adjust the signature if needed
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment