The backend API url to request.
Get the backend API endpoint.
Set the backend API endpoint.
A basic fetcher for this SDK and Vercel SWR.
The method to call. For example, /auth/user
.
The JSON fetcher.
The text fetcher.
Create the header for an authenticated request.
-> CSCAuth
Get the singleton instance of this client.
This method emulated what response.ok
does.
Create the header for an POST (application/json) request.
The request object. We will serialize this
data with JSON.stringify()
.
Parse the response.
The response.
The response schema built with myzod.
Generated using TypeDoc
The client for requesting, with some API utilities.