Skip to content

Commit

Permalink
fix(OAuth2): remove invalid parameters from refresh token request
Browse files Browse the repository at this point in the history
BREAKING CHANGE: This commit removes parameters that are not expected
in the refresh token request body

Reference: discord/discord-api-docs@eaa12cb
  • Loading branch information
vladfrangu committed Apr 10, 2021
1 parent 457edf4 commit 1c02450
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions deno/rest/v8/oauth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ export interface RESTPostOAuth2RefreshTokenURLEncodedData {
client_secret: string;
grant_type: 'refresh_token';
refresh_token: string;
redirect_uri?: string;
scope?: string;
}

export type RESTPostOAuth2RefreshTokenResult = RESTPostOAuth2AccessTokenResult;
Expand Down
2 changes: 0 additions & 2 deletions rest/v8/oauth2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ export interface RESTPostOAuth2RefreshTokenURLEncodedData {
client_secret: string;
grant_type: 'refresh_token';
refresh_token: string;
redirect_uri?: string;
scope?: string;
}

export type RESTPostOAuth2RefreshTokenResult = RESTPostOAuth2AccessTokenResult;
Expand Down

0 comments on commit 1c02450

Please sign in to comment.