Xivgear Types Documentation
    Preparing search index...
    Index

    Constructors

    Accessors

    • get tokenPromise(): Promise<string>

      Returns a promise that resolves to the most recent token (or null if not logged in). Does not resolve until at least one attempt to retrieve a JWT token has been made, or if we know that we are not logged in.

      Returns Promise<string>

    Methods

    • Registers a new user with the provided email, password, and display name.

      Parameters

      • email: string

        The email address of the user to be registered.

      • password: string

        The password for the user account.

      • displayName: string

        The display name of the user.

      Returns Promise<RegisterResponse | ValidationErrorResponse>

      A promise that resolves to the registration response on success, or a validation error response if the request fails due to validation errors. Throws an error for other types of failures.