Authenticates a user with the Ti365 backend using username and password. Implements SRP6a (Secure Remote Password) protocol for secure password authentication without exposing the password to the backend.
The Ti365 username
The Ti365 password
A Promise that resolves to a LoginResult containing either a session or status
Confirms multi-factor authentication (MFA) with a PIN code. Must be called after a successful login that returned MFA_REQUIRED status.
The MFA PIN code to confirm
A Promise that resolves to a LoginResult containing either a session or status
Service for handling authentication operations in the Ti365 system. Provides functionality for user login, MFA confirmation, and session management. Uses SRP6a (Secure Remote Password) protocol for secure password authentication.