buildUserinfoRequest
buildUserinfoRequest(
discovery,accessToken):HttpRequest
Defined in: packages/core/src/userinfo.ts:16
Builds an HTTP request to the UserInfo endpoint using a Bearer access token.
Parameters
Section titled “Parameters”discovery
Section titled “discovery”The OIDC discovery document containing the userinfo_endpoint.
accessToken
Section titled “accessToken”string
A valid access token issued by the authorization server.
Returns
Section titled “Returns”An HttpRequest configured with the Bearer Authorization header.
- OpenID Connect Core 1.0 §5.3.1 — UserInfo Request
- RFC 6750 §2.1 — Bearer token in Authorization header