RequestOptions interface
Request options for fetch API.
Properties
| body | Raw request body. |
| headers | Per-request headers, merged over the client's default headers. |
| method | HTTP method (defaults to the method implied by the calling helper). |
| skip |
Skip automatic token refresh and retry on 401 Unauthorized. Used for auth endpoints like signOut and refreshToken where 401 is an expected error. |
| timeout | Per-request timeout in milliseconds, overriding the client default. |
Property Details
body
Raw request body.
body?: null | string
Property Value
null | string
headers
Per-request headers, merged over the client's default headers.
headers?: Record<string, string> | Headers
Property Value
Record<string, string> | Headers
method
HTTP method (defaults to the method implied by the calling helper).
method?: string
Property Value
string
skipRetryOn401
Skip automatic token refresh and retry on 401 Unauthorized. Used for auth endpoints like signOut and refreshToken where 401 is an expected error.
skipRetryOn401?: boolean
Property Value
boolean
timeout
Per-request timeout in milliseconds, overriding the client default.
timeout?: number
Property Value
number