The public key value to set.
The WebID whose profile document references the key set to which we wish to add the specified public key.
Optional parameter options.fetch
: An alternative fetch
function to make the HTTP request, compatible with the browser-native fetch API.
Optional
fetch?: (input: URL | RequestInfo, init?: RequestInit) => Promise<Response>
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.