Commit 90d21139 by Percy Quispe Huarcaya

feat: Adding token creator and a parser

parent 229e2a8e
......@@ -15,5 +15,8 @@
},
"devDependencies": {
"jest": "^29.7.0"
},
"dependencies": {
"security-ndjs-lib": "git+https://pquispe@version.sacooliveros.edu.pe/pquispe/security-ndjs-lib.git"
}
}
declare module 'util/token' {
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