Skip to content
Snippets Groups Projects
Commit a7667dff authored by m.nabokikh's avatar m.nabokikh
Browse files

fix: remove empty RefreshTokens

parent b2e9f67e
No related branches found
No related tags found
No related merge requests found
......@@ -291,9 +291,7 @@ func (d dexAPI) ListRefresh(ctx context.Context, req *api.ListRefreshReq) (*api.
if err == storage.ErrNotFound {
// This means that this user-client pair does not have a refresh token yet.
// An empty list should be returned instead of an error.
return &api.ListRefreshResp{
RefreshTokens: nil,
}, nil
return &api.ListRefreshResp{}, nil
}
d.logger.Errorf("api: failed to list refresh tokens %t here : %v", err == storage.ErrNotFound, err)
return nil, err
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment