In This Article
useWixFetchWithAuth()
The useWixFetchWithAuth()
hook returns a function for making requests to the Wix REST API and external endpoints that require a Wix access token. The access token is generated using authentication details from the enclosing WixProvider
and is automatically included in requests as an Authorization
header.
Note: Only use this function to call a Wix REST API if the needed functionality isn't available in the JavaScript SDK. Otherwise, use the SDK version.
Example
Copy
1
Was this helpful?
Yes
No