@inrupt/solid-client
    Preparing search index...

    Function addPublicKeyToProfileJwks

    • Adds a public key to the JWKS listed in the profile associated to the given WebID. Retrieves the profile document for the specified WebID and looks up the associated JWKS. Having added the given key to the JWKS, this function overwrites the previous JWKS so that the new version is saved. This assumes the JWKS is hosted at a read-write IRI, such as in a Solid Pod.

      Parameters

      • publicKey: Jwk

        The public key value to set.

      • webId: string

        The WebID whose profile document references the key set to which we wish to add the specified public key.

      • options: { fetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response> } = {}

        Optional parameter options.fetch: An alternative fetch function to make the HTTP request, compatible with the browser-native fetch API.

        • Optionalfetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>

      Returns Promise<Blob & WithResourceInfo>

      1.12.0