Function refreshAuthProvider

  • Creates an OIDC Refresh Token Provider for browser and non-browser contexts.

    Both browser and non-browser flows use OIDC, but the supported OIDC auth mechanisms differ between public (e.g. browser) clients, and confidential (e.g. Node) clients.

    This provider supports Refresh Token auth. This flow assumes the client has already authenticated with the OIDC IdP using the OIDC flow fo their choice, and can provide a Refresh Token which will be exchanged (along with the client pubkey) for a new tokenset containing valid TDF claims.

    The client's public key must be set in all OIDC token requests in order to recieve a token with valid Virtru claims. The public key may be passed to this provider's constructor, or supplied post-construction by calling updateClientPublicKey which will force an explicit token refresh

    Parameters

    • clientConfig: RefreshTokenCredentials

    Returns Promise<OIDCRefreshTokenProvider>

Generated using TypeDoc