Function: processResourceDiscoveryResponse()
August 29, 2025 ยท View on GitHub
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.
โธ processResourceDiscoveryResponse(expectedResourceIdentifier, response): Promise<ResourceServer>
Validates Response instance to be one coming from the resource server's well-known discovery endpoint.
Parameters
| Parameter | Type | Description |
|---|---|---|
expectedResourceIdentifier | URL | Expected Resource Identifier value. |
response | Response | Resolved value from resourceDiscoveryRequest or from a general fetch following WWWAuthenticateChallengeParameters.resource_metadata. |
Returns
Resolves with the discovered Resource Server Metadata.