Skip to content

Commit

Permalink
Fix a bug on tooling.tokens.rotate API method in #1231
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch committed Nov 8, 2023
1 parent 1716f4a commit c86ee12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3062,7 +3062,7 @@ public TeamPreferencesListResponse teamPreferencesList(RequestConfigurator<TeamP

@Override
public ToolingTokensRotateResponse toolingTokensRotate(ToolingTokensRotateRequest req) throws IOException, SlackApiException {
return postFormWithTokenAndParseResponse(toForm(req), Methods.TOOLING_TOKENS_ROTATE, getToken(req), ToolingTokensRotateResponse.class);
return postFormAndParseResponse(toForm(req), Methods.TOOLING_TOKENS_ROTATE, ToolingTokensRotateResponse.class);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
@Data
@Builder
public class ToolingTokensRotateRequest implements SlackApiRequest {

// This token parameter is just a synonym for refreshToken
private String token;
private String refreshToken;

}

0 comments on commit c86ee12

Please sign in to comment.