fix further type problems

This commit is contained in:
2025-06-10 14:33:40 +02:00
parent e4d74e4331
commit 07247486ab
10 changed files with 15 additions and 63 deletions

View File

@@ -11,7 +11,7 @@ export function createToken(userData) {
return jwt.sign(userData, SECRET, { expiresIn: EXPIRES_IN });
}
export function decryptToken(token) {
export function decryptToken(token: string) {
return jwt.verify(token, SECRET);
}