@inrupt/solid-client-access-grants / interfaces / AccessBaseOptions
Interface: AccessBaseOptions#
Optional parameters to customise the behaviour of access requests.
fetch
: Pass in a function with a signature compatible with the WHATWG Fetch API, which will be used to make HTTP requests. Primarily useful when requests need to be authenticated.When @inrupt/solid-client-authn-browser is available and this property is not set,
fetch
will be imported from there. Otherwise, the HTTP requests will be unauthenticated.accessEndpoint
: A base URL used when determining the location of access API calls. If not given, it is attempted to be found by determining the server URL from the resource involved in the request and reading its.well-known/solid
file for an Access API entry.
Since
0.4.0
Properties#
accessEndpoint#
• Optional
accessEndpoint: string
| URL
Since
0.4.0
Defined in#
fetch#
• Optional
fetch: (input
: RequestInfo
| URL
, init?
: RequestInit
) => Promise
<Response
>
Type declaration#
▸ (input
, init?
): Promise
<Response
>
Parameters#
Name |
Type |
---|---|
|
|
|
|
Returns#
Promise
<Response
>