Add type definition for token revocation requests
This commit is contained in:
parent
26ffe00dc3
commit
f4002e559e
1 changed files with 10 additions and 1 deletions
|
|
@ -102,10 +102,19 @@ export const OAuthClientRegistrationErrorSchema = z.object({
|
|||
error_description: z.string().optional(),
|
||||
}).strip();
|
||||
|
||||
/**
|
||||
* RFC 7009 OAuth 2.0 Token Revocation request
|
||||
*/
|
||||
export const OAuthTokenRevocationRequestSchema = z.object({
|
||||
token: z.string(),
|
||||
token_type_hint: z.string().optional(),
|
||||
}).strip();
|
||||
|
||||
export type OAuthMetadata = z.infer<typeof OAuthMetadataSchema>;
|
||||
export type OAuthTokens = z.infer<typeof OAuthTokensSchema>;
|
||||
export type OAuthError = z.infer<typeof OAuthErrorSchema>;
|
||||
export type OAuthClientMetadata = z.infer<typeof OAuthClientMetadataSchema>;
|
||||
export type OAuthClientInformation = z.infer<typeof OAuthClientInformationSchema>;
|
||||
export type OAuthClientInformationFull = z.infer<typeof OAuthClientInformationFullSchema>;
|
||||
export type OAuthClientRegistrationError = z.infer<typeof OAuthClientRegistrationErrorSchema>;
|
||||
export type OAuthClientRegistrationError = z.infer<typeof OAuthClientRegistrationErrorSchema>;
|
||||
export type OAuthTokenRevocationRequest = z.infer<typeof OAuthTokenRevocationRequestSchema>;
|
||||
Loading…
Reference in a new issue