Skip to content

Commit 6ead98b

Browse files
authored
feat(RESTOAuth2): add RESTPostOAuth2TokenRevocationQuery (#1050)
1 parent ea1a6c3 commit 6ead98b

File tree

4 files changed

+32
-0
lines changed

4 files changed

+32
-0
lines changed

deno/rest/v10/oauth2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery {
4040
prompt?: 'consent' | 'none';
4141
}
4242

43+
/**
44+
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example
45+
*/
46+
export interface RESTPostOAuth2TokenRevocationQuery {
47+
token: string;
48+
token_type_hint?: 'access_token' | 'refresh_token';
49+
}
50+
4351
/**
4452
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example
4553
*/

deno/rest/v9/oauth2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery {
4040
prompt?: 'consent' | 'none';
4141
}
4242

43+
/**
44+
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example
45+
*/
46+
export interface RESTPostOAuth2TokenRevocationQuery {
47+
token: string;
48+
token_type_hint?: 'access_token' | 'refresh_token';
49+
}
50+
4351
/**
4452
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example
4553
*/

rest/v10/oauth2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery {
4040
prompt?: 'consent' | 'none';
4141
}
4242

43+
/**
44+
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example
45+
*/
46+
export interface RESTPostOAuth2TokenRevocationQuery {
47+
token: string;
48+
token_type_hint?: 'access_token' | 'refresh_token';
49+
}
50+
4351
/**
4452
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example
4553
*/

rest/v9/oauth2.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ export interface RESTOAuth2AuthorizationQuery {
4040
prompt?: 'consent' | 'none';
4141
}
4242

43+
/**
44+
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-token-revocation-example
45+
*/
46+
export interface RESTPostOAuth2TokenRevocationQuery {
47+
token: string;
48+
token_type_hint?: 'access_token' | 'refresh_token';
49+
}
50+
4351
/**
4452
* https://discord.com/developers/docs/topics/oauth2#authorization-code-grant-redirect-url-example
4553
*/

0 commit comments

Comments
 (0)