Class App<FunctionsFactoryType, CustomDataType>

The class represents an Atlas App Services Application.

const app = new App({ id: "my-app-qwert" });

Type Parameters

Constructors

Accessors

Methods

  • Adds a listener that will be fired on various user events. This includes login, logout, switching users, linking users and refreshing custom data.

    Parameters

    • callback: AppChangeCallback

      A callback function that will be called when the event occurs.

    Returns void

  • Delete the user. NOTE: This irrecoverably deletes the user from the device as well as the server!

    Parameters

    Returns Promise<void>

    A promise that resolves once the user has been deleted.

  • Logs out and removes a user from the client.

    Parameters

    Returns Promise<void>

    A promise that resolves once the user has been logged out and removed from the app.

  • Switches the current user to the one specified in user.

    Parameters

    • user: AnyUser

      The user to switch to.

    Returns void

    Throws

    an Error if the new user is logged out or removed.

Generated using TypeDoc