Skip to content

buildRefreshRequest

buildRefreshRequest(discovery, config, refreshToken): HttpRequest

Defined in: packages/core/src/token.ts:55

Builds an HTTP request to refresh an access token using a refresh token (RFC 6749 §6).

OidcDiscovery

The OIDC discovery document containing the token endpoint.

OidcConfig

Client configuration (clientId, optional clientSecret).

string

The refresh token previously issued by the authorization server.

HttpRequest

An HttpRequest ready to be sent to the token endpoint.