FHIRClient - v3.0.0
    Preparing search index...

    Function buildTokenRequest

    • Builds the token request options. Does not make the request, just creates it's configuration and returns it in a Promise.

      Parameters

      • env: Adapter
      • __namedParameters: {
            clientPublicKeySetUrl?: string;
            code: string;
            privateKey?: JWK | { alg: "ES384" | "RS384"; key: CryptoKey; kid: string };
            state: ClientState;
        }
        • OptionalclientPublicKeySetUrl?: string

          If provided overrides the clientPublicKeySetUrl from the authorize options (if any). Used for jku token header in case of asymmetric auth.

        • code: string

          The code URL parameter received from the auth redirect

        • OptionalprivateKey?: JWK | { alg: "ES384" | "RS384"; key: CryptoKey; kid: string }

          Can be a private JWK, or an object with alg, kid and key properties, where key is an un-extractable private CryptoKey object.

        • state: ClientState

          The app state

      Returns Promise<RequestInit>