电话咨询
This commit is contained in:
@@ -298,9 +298,10 @@ func (s *AuthService) Logout(ctx context.Context, userID int64, clientType strin
|
||||
}
|
||||
|
||||
// ValidateAccessToken 校验 Access Token 是否在 Redis 中有效
|
||||
// 供 JWT 中间件调用,实现有状态 JWT 验证,按 clientType 隔离校验
|
||||
func (s *AuthService) ValidateAccessToken(ctx context.Context, userID int64, clientType, token string) bool {
|
||||
return s.tokenStore.ValidateAccessToken(ctx, userID, clientType, token)
|
||||
// 供 JWT 中间件 / WS 握手调用,实现有状态 JWT 验证,按 clientType 隔离校验;
|
||||
// username 用于识别云律临时会议账号并放宽「单点登录挤号」校验
|
||||
func (s *AuthService) ValidateAccessToken(ctx context.Context, userID int64, clientType, token, username string) bool {
|
||||
return s.tokenStore.ValidateAccessToken(ctx, userID, clientType, token, username)
|
||||
}
|
||||
|
||||
// GetProfile 获取用户个人信息
|
||||
|
||||
Reference in New Issue
Block a user