feat: enhance security with token blacklisting and input sanitization; add helmet for security headers
Test / backend (push) Successful in 15s
Test / frontend (push) Successful in 24s

This commit is contained in:
LaurensBartelds committed 2026-04-27 12:52:57 +02:00
1 parent 4935251125
commit 1b5fd04040
25 files changed
+294 -90

No files matched your search

+4
View File
@@ -20,3 +20,7 @@ export function verifyToken(token: string): JwtPayload {
export function generateVerificationToken(): string {
return crypto.randomBytes(32).toString('hex')
}
export function hashToken(token: string): string {
return crypto.createHash('sha256').update(token).digest('hex')
}