mirror of
https://github.com/hanzoai/openid-client.git
synced 2026-09-24 17:01:10 +00:00
1.9 KiB
1.9 KiB
Function: tokenIntrospection()
Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.
â–¸ tokenIntrospection(config, token, parameters?): Promise<IntrospectionResponse>
Queries the token introspection endpoint to obtain the status and metadata of a given token. The range of metadata returned is at the discretion of the authorization server.
Note
URL of the authorization server's token introspection endpoint must be configured.
Parameters
| Parameter | Type | Description |
|---|---|---|
config |
Configuration |
- |
token |
string |
OAuth 2.0 token (either access token or refresh token) that is being introspected |
parameters? |
Record<string, string> | URLSearchParams |
Additional parameters to be included in the introspection request body, such as token_type_hint |
Returns
Promise<IntrospectionResponse>