Protected
Readonly
baseReadonly
ERR_Protected
doA generic request helper.
The path to send the request to.
The request RequestInit | Configuration.
Protected
doSend a GET request.
The path to send the request to.
Protected
doSend a POST request.
THe path to send the request to.
Optional
bodyData: DThe body-data to send.
The data-type of the bodyData.
Request the UserInfo
of the logged in user.
The user is identified by the session cookie
.
Send a login request. Sets the session cookie on success.
The AccountLoginRequest
to send
An error message if something went wrong
Send a logout request. Always (no matter if failed or not) removes the session cookie.
Register a new account.
The AccountRegisterRequest
to send
An error message if something went wrong
Protected
toHelper to transform data to URLSearchParams
Any key with a value of undefined
will be ignored.
Any key with a value of null
will be included.
the data to transform to URLSearchParams
a URLSearchParams representaton of data
A wrapper for PokéRogue account API requests.