Skip to main content

Log in


Use the Log in screen to authenticate a user, create an active session, and present MFA when the account requires extra verification.
This screen defines the main entry point to the Air Doctor App and supports secure access control for all integration levels.


Log in screen showing email and password inputs; optional MFA code field when required

This screen includes:

  • Social sign-in options

    • Continue with Google
    • Continue with Apple
    • Continue with Facebook
  • Email field - Required input for account email.

  • Password field

    • Required input for account password.
    • Includes visibility toggle.
  • Sign in button - Submits credentials.

  • Forgot password link - Navigates to the Reset Password screen.

  • Create account link - Navigates to the account registration flow.

  • User ID label

    • Displays the user identifier.
    • Supports copy to clipboard.

Workflow

This flow starts when the user opens the log in screen.

Primary Flow

  1. Enter email and password.
  2. Select Log in.
  3. Access the application.

Conditional Flow

If MFA is required:

  1. Enter verification code.
  2. Select Log in.
  3. Access the application.

Navigation depends on the integration level:

  • Levels 1–2: Navigate to Air Doctor screens.
  • Levels 3–4: Host app controls navigation entry points.
  • Levels 5–6: Host app controls routing after login

Validation

ScenarioApp behaviorSDK output
Email or password missing.Block submission. Highlight fields.Validation error.
Email not registered.Display unknown account message.Unknown user error.
Invalid credentials.Display error message.INVALID_CREDENTIALS.
MFA required but missing.Prompt for verification code.MFA_REQUIRED.
MFA code invalid.Display error message.INVALID_CREDENTIALS.
Reset link expired.Display expiration message.Expired token error.

Actions

Authentication

ScenarioApp behaviorSDK output
Valid credentials submitted.Start session. Hide form.Return session token and user context.
MFA required.Display MFA input.Return MFA requirement state.

Session Control

ScenarioApp behaviorSDK output
logout() called.Clear session. Show log in screen.Emit onLogout.
Session expired.Show log in screen.Emit onSessionExpired.

Endpoint Resources

Displays the Login Screen

PUT 

v3/account/login

This endpoint returns the login screen configuration and the current session state.
Integrators can override labels and colors with SDK configuration keys:
ui.login.button, ui.mfa.label, ui.error.invalidCredentials, and theme.primaryColor.

UI Element Types

LevelReferenceTypeValuePlacement
1change-languageToolbar[Change language]
1logoIllustration[AirDr Logo]^100
1log-messageSectionPlease log in to continue^
1emailEmailEmail address
1passwordPasswordPassword
1mfaIntegerAuthentication code
1loginButtonLog in
1spaserSpacer
1reset-passwordLinkForgot your password? Click here to reset^

Affiliate Login Screen

PUT 

/v3/account/login/affiliate

Displays the affiliate login screen.

Login

POST 

v3/account/login

This endpoint authenticates the user with credentials. If the account has MFA enabled, include a verification code.

Social Login (Patient only)

POST 

v3/account/login/social

This endpoint authenticates a user through a supported social login provider.
The SDK creates a valid session when the social provider token is valid.

Submit Email

PATCH 

v3/account/login/email

Submits the email for validation and determines the next authentication step.

On Email Change

PATCH 

v3/account/login/email/on-change

Called on email input change to clear an existing email field error and optionally update UI state.
The response body follows the Patch Response Format and applies updates to the open page.