Abstract Static _allStatic apiStatic authAuth Provider to use. This is only relevant for OAuthBackend, but specifying here as Backend is the only class users import.
Static capabilitiesStatic defaultStatic defaultStatic hooksStatic phrasesStatic allStatic authservices.json from the auth provider will be cached here. You could also set this manually to avoid the network request.
Static hostReturn the hostname of the first URL pattern in the urls array, if not variable.
This is used to facilitate relative URLs when constructing Backends directly.
Subclasses with variable hostnames can override this.
Static titlePrivate #getLow-level method to fetch data from the backend. Subclasses should override this method.
Clients should not call this method directly, but use load() instead.
reference to data to fetch, if different from that provided in the constructor
null if not foundHigher-level method for reading data from the backend. Subclasses should usually NOT override this method.
URL to fetch, if different from that provided in the constructor
Rest ...args: any[]null if not foundLog a user in, either passively (without triggering any login UI) or actively (with login UI)
Optional options: { {object}
{boolean} - Do not trigger any login UI, just return the current user if already logged in
Helper for making HTTP requests with JSON-based APIs.
API endpoint
Optional data: anyData to send with the request
Optional method: string = "GET"HTTP method
Optional req: { Extra request options
Extra headers
Response type
Sync the logged in user, i.e. log in passively when another backend has logged in and log out when another backend has logged out. Generally intended to be used for backends with the same authentication mechanism. Syncing is not two-way, you need to call this on the other backend as well to make it so.
Static findStatic fromStatic loadStatic parseURLStatic phraseStatic registerStatic testGenerated using TypeDoc
Backend that supports authentication.