- 添加 @nestjs/jwt 依赖,AppModule 注册全局 JwtModule - 重写 JwtAuthGuard:使用 JwtService.verifyAsync 解析用户 token (type=access) - 新建 AdminGuard:验证管理员 token (type=admin),与 identity-service 共享 JWT_SECRET - heartbeat 接口:保持 JwtAuthGuard(用户 JWT) - online-count / online-history / dau:改用 AdminGuard(管理员 JWT) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| .claude | ||
| api-gateway | ||
| infrastructure | ||
| mpc-system | ||
| scripts | ||
| services | ||
| .env.windows | ||
| docker-compose.windows.yml | ||