Should be the full request URL for your refresh session API endpoint.
This function will send a POST request to it.
sessionExpiredStatusCode (Optional)
Type: number
Default: 440
HTTP status code that indicates session expiry - as sent by your APIs.
viaInterceptor (Optional)
Type: boolean
Default: false
If true, all network calls made using fetch are intercepted.
refreshAPICustomHeaders (Optional)
Type: object
Default: {}
If your refresh API requires any custom headers (for example a version number), then you can provide that in this object. An example is: {api-version: "0"}
Returns
void
Throws
Nothing
fetch(url, config?)
Parameters
url
Type: string
Same as what fetch expects.
config (Optional)
Type: object
Same as what fetch expects.
Returns
Identical to the fetch API.
Throws
Identical to the fetch API.
An Error object if the init function is not called.