feat: new features

This commit is contained in:
Ivan Rezchikov
2026-06-15 15:19:53 +03:00
parent 5752d5b2b4
commit 3c64666299
12 changed files with 443 additions and 238 deletions
@@ -327,7 +327,6 @@ func (s *Service) issuePair(ctx context.Context, user *models.User, clientID uui
return nil, models.ErrInternal
}
// Track issued access tokens per user and client to support revocation.
_ = s.redis.SAdd(ctx, fmt.Sprintf("user_client_tokens:%s:%s", user.ID, clientID), accessToken).Err()
_, err = s.oauth.CreateRefreshToken(ctx, models.RefreshTokenRow{