feat: 添加token验证日志,优化WebSocket连接管理

This commit is contained in:
2026-02-21 07:28:01 +08:00
parent 71c238f953
commit d50f5ed2af
2 changed files with 2 additions and 1 deletions

View File

@@ -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)) {