feat: 添加token验证日志,优化WebSocket连接管理
This commit is contained in:
@@ -55,6 +55,7 @@ export class UserSecret {
|
||||
static async verifyToken(token: string) {
|
||||
if (token?.includes?.('.')) {
|
||||
// 先尝试作为jwt token验证,如果验证成功则直接返回用户信息
|
||||
console.log('[jwksManager] 验证token');
|
||||
return await jwksManager.verify(token);
|
||||
}
|
||||
if (!oauth.isSecretKey(token)) {
|
||||
|
||||
Reference in New Issue
Block a user