Skip to content

Commit

Permalink
fix: api.v2.UserService/ListUserAccessTokens too many access tokens c…
Browse files Browse the repository at this point in the history
…ause browser broken
  • Loading branch information
whatwewant committed Apr 7, 2024
1 parent 7476792 commit 912b95d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/route/api/v2/user_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ func (s *APIV2Service) ListUserAccessTokens(ctx context.Context, request *apiv2p
return nil, status.Errorf(codes.Internal, "failed to list access tokens: %v", err)
}

// limit only the first 20 access tokens.
if len(userAccessTokens) > 20 {
userAccessTokens = userAccessTokens[:20]
// limit only the first 200 access tokens.
if len(userAccessTokens) > 200 {
userAccessTokens = userAccessTokens[:200]
}

accessTokens := []*apiv2pb.UserAccessToken{}
Expand Down

0 comments on commit 912b95d

Please sign in to comment.