Function: processUserInfoResponse()
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.
โธ processUserInfoResponse(as, client, expectedSubject, response, options?): Promise<UserInfoResponse>
Validates Response instance to be one coming from the
as.userinfo\_endpoint.
Parameters
| Parameter | Type | Description |
|---|---|---|
as | AuthorizationServer | Authorization Server Metadata. |
client | Client | Client Metadata. |
expectedSubject | string | typeof skipSubjectCheck | Expected sub claim value. In response to OpenID Connect authentication requests, the expected subject is the one from the ID Token claims retrieved from getValidatedIdTokenClaims. |
response | Response | Resolved value from userInfoRequest. |
options? | JWEDecryptOptions | - |
Returns
Resolves with an object representing the parsed successful response. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.