IO Wallet SDK
    Preparing search index...

    Function fetchRequestObjectJwt

    • Helper function to fetch Request Object JWT from request_uri. Supports GET and POST methods, with optional wallet metadata for POST.

      Parameters

      • requestUri: string

        URI to fetch Request Object from

      • options: {
            fetch:
                | ((input: URL | RequestInfo, init?: RequestInit) => Promise<Response>)
                | undefined;
            method: "get" | "post";
            walletMetadata?: {
                authorization_endpoint?: string;
                client_id_prefixes_supported?: string[];
                request_object_signing_alg_values_supported?: string[];
                response_modes_supported?: string[];
                response_types_supported?: string[];
                vp_formats_supported?: Record<string, unknown>;
            };
            walletNonce?: string;
        }

        Fetch options including method and wallet metadata

      Returns Promise<string>

      The Request Object JWT as a string

      If the server returns a non-200 status code

      If the underlying fetch/createFetcher call fails (for example, due to network errors)