Constructors

Methods

  • get current user email (if logged in)

    Returns CancelablePromise<string>

    string user email

    ApiError

  • get current usage outside of premium workspaces

    Returns CancelablePromise<number>

    number free usage

    ApiError

  • login with password

    Parameters

    Returns CancelablePromise<string>

    string Successfully authenticated. The session ID is returned in a cookie named token and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.

    ApiError

  • login with oauth authorization flow

    Parameters

    Returns CancelablePromise<string>

    string Successfully authenticated. The session ID is returned in a cookie named token and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.

    ApiError

  • logout

    Returns CancelablePromise<string>

    string clear cookies and clear token (if applicable)

    ApiError

  • refresh the current token

    Returns CancelablePromise<string>

    string free usage

    ApiError