chore: version 1.32.0

This commit is contained in:
Nikolai Giman
2026-03-22 23:29:56 +01:00
parent 9307ab5e45
commit 2ad29b77f9
13 changed files with 92 additions and 35 deletions
+2 -2
View File
@@ -1,3 +1,4 @@
import jwt from 'jsonwebtoken';
import { $logger } from '../modules/logget';
interface CentrifugoPublishPayload {
@@ -57,8 +58,7 @@ export class CentrifugoClient {
}
static generateConnectionToken(userId: number): string {
const jwt = require('jsonwebtoken');
const secret = process.env.CENTRIFUGO_TOKEN_SECRET || process.env.JWT_SIGN;
const secret = process.env.CENTRIFUGO_TOKEN_SECRET || process.env.JWT_SIGN || '';
return jwt.sign(
{ sub: String(userId) },
secret,