refactor module & reset token

This commit is contained in:
Paul Coral
2025-08-10 22:41:34 +02:00
parent ba90bf221b
commit 4b8348e32f
39 changed files with 386 additions and 67 deletions

View File

@@ -0,0 +1,5 @@
import * as crypto from 'crypto';
export function generateSecureToken(length = 32) {
return crypto.randomBytes(length).toString('hex');
}