Function getToken

getToken - Get a session token from username and password via the API

  • Parameters

    • username: string

      The username of the account

    • password: string

      The password of the accoutn

    • Optionalotp: string

      the OTP code, optional

    Returns Promise<string>