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.
| Parameter | Type | Description |
|---|---|---|
expectedResourceIdentifier |
URL |
Expected Resource Identifier value. |
response |
Response |
Resolved value from resourceDiscoveryRequest or from a general fetch following WWWAuthenticateChallengeParameters.resource_metadata. |
Resolves with the discovered Resource Server Metadata.