Function: processUserInfoResponse()

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.


โ–ธ processUserInfoResponse(as, client, expectedSubject, response, options?): Promise<UserInfoResponse>

Validates Response instance to be one coming from the as.userinfo\_endpoint.

Parameters

ParameterTypeDescription
asAuthorizationServerAuthorization Server Metadata.
clientClientClient Metadata.
expectedSubjectstring | typeof skipSubjectCheckExpected sub claim value. In response to OpenID Connect authentication requests, the expected subject is the one from the ID Token claims retrieved from getValidatedIdTokenClaims.
responseResponseResolved value from userInfoRequest.
options?JWEDecryptOptions-

Returns

Promise<UserInfoResponse>

Resolves with an object representing the parsed successful response. WWW-Authenticate HTTP Header challenges are rejected with WWWAuthenticateChallengeError.

See

OpenID Connect Core 1.0