Methods to manage user authentication.
Logs in to a FolderHarbor server using user credentials.
Logs out and invalidates the session token.
Registers for a new account on a FolderHarbor server.
Note that this will error if the server doesn't have registration enabled! I recommend calling FolderHarbor#clientconfig() and checking that registration is enabled.
Gets information from the server that is important client-side.
The "client configuration" from the server
Gets the connection URLs for different file-transferring protocols.
The connection URLs for any enabled protocols, and null for disabled ones
Request wrapper for the other methods, used internally
The path to fetch on the server, without a leading slash!
Optionalinit: RequestInitA request body, this uses the same syntax as the Fetch API
The object returned from the API, matching the type that was used in the call
Core SDK for FolderHarbor's API!
Full docs: https://folderharbor.github.io/ts-sdk
Example
Example
Throws
If the details passed in the constructor are invalid