Function: processResourceDiscoveryResponse()

August 29, 2025 ยท View on GitHub

๐Ÿ’— Help the project

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

ParameterTypeDescription
expectedResourceIdentifierURLExpected Resource Identifier value.
responseResponseResolved value from resourceDiscoveryRequest or from a general fetch following WWWAuthenticateChallengeParameters.resource_metadata.

Returns

Promise<ResourceServer>

Resolves with the discovered Resource Server Metadata.

See

RFC 9728 - OAuth 2.0 Protected Resource Metadata