OptionalapiBaseUrl: stringGet current session or throw error if not authenticated
Current session credentials
Check if user is currently authenticated
True if authenticated
PrivateisCheck if a JWT token is expiring soon (within 5 minutes)
Authenticate with username and password using SRP protocol. Single attempt — no automatic retries. Rate-limit and CAPTCHA errors are surfaced to the caller so the user controls when to retry.
OptionalcaptchaToken: stringLogout and clear the current session
Refresh the access token using the refresh token
Updated session credentials
Main authentication service Handles login, session management, and token refresh