Static ReadonlyALL_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyERROR_Static ReadonlyFAIL_The auto discovery failed. The client is expected to communicate the error to the user and refuse logging in.
Static ReadonlyFAIL_The auto discovery failed, however the client may still recover from the problem. The client is recommended to that the same action it would for PROMPT while also warning the user about what went wrong. The client may also treat this the same as a FAIL_ERROR state.
Static ReadonlyPROMPTThe auto discovery didn't fail but did not find anything of interest. The client is expected to prompt the user for more information, or fail if it prefers.
Static ReadonlySUCCESSThe auto discovery was successful.
StaticfindAttempts to automatically discover client configuration information prior to logging in. Such information includes the homeserver URL and identity server URL the client would want. Additional details may also be discovered, and will be transparently included in the response object unaltered.
The homeserver domain to perform discovery on. For example, "matrix.org".
Promise which resolves to the discovered configuration, which may include error states. Rejects on unexpected failure, not when discovery fails.
StaticfromValidates and verifies client configuration information for purposes of logging in. Such information includes the homeserver URL and identity server URL the client would want. Additional details may also be included, and will be transparently brought into the response object unaltered.
Optionalwellknown: IClientWellKnownThe configuration object itself, as returned by the .well-known auto-discovery endpoint.
Promise which resolves to the verified configuration, which may include error states. Rejects on unexpected failure, not when verification fails.
StaticgetGets the raw discovery client configuration for the given domain name. Should only be used if there's no validation to be done on the resulting object, otherwise use findClientConfig().
Optionaldomain: stringThe domain to get the client config for.
Promise which resolves to the domain's client config. Can be an empty object.
Staticset
Utilities for automatically discovery resources, such as homeservers for users to log in to.