mirror of
https://github.com/Gimanh/taskview-community.git
synced 2026-09-25 03:42:33 +00:00
chore: version 1.32.0
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user