Optional
accessToken?: AccessTokenOptional
apiPrefix?: stringOptional
auth?: NextDrupalAuthOverride the default auth. You can use this to implement your own authentication mechanism.
Optional
debug?: booleanOptional
fetcher?: FetcherOverride the default fetcher. Use this to add your own fetcher ex. axios.
fetch
Optional
frontPage?: stringOptional
headers?: HeadersInitSet custom headers for the fetcher.
{ "Content-Type": "application/vnd.api+json", Accept: "application/vnd.api+json" }
Optional
logger?: LoggerOverride the default logger. You can use this to send logs to a third-party service.
console
Optional
withAuth?: booleanSet whether the client should use authenticated requests by default.
true
A long-lived access token you can set for the client.
null
Documentation