Skip to main content

Sign in


Use the Sign in screen to authenticate a user and create an active session. This screen also presents MFA when the account requires extra verification.


Sign in screen with social sign-in options, email and password inputs, and account access links

This screen includes:

#ElementDescription
1HeaderDisplays Sign in title and close control
2BrandingDisplays Air Doctor logo
3Social sign-in optionsProvides Google, Apple, and Facebook authentication
4Email fieldRequired input for account email
5Password fieldRequired input with visibility toggle
6Sign in buttonSubmits credentials
7Forgot password linkOpens the reset password flow
8Create account linkOpens account registration
9User ID labelDisplays user identifier with copy action

Workflow

  1. Open the Sign in screen.
  2. Select a social sign-in option or enter email and password.
  3. Select Sign in.
  4. Complete MFA when required.
  5. Access the application.

Validations

ScenarioApp behaviorSDK output
Email or password missingDisable submission or show field errorvalidation = required
Email format invalidDisplay inline errorerror = invalid_email
Credentials invalidDisplay generic authentication errorerror = invalid_credentials
MFA requiredDisplay verification code fieldstate = mfa_required
MFA code invalidDisplay verification errorerror = invalid_mfa
Request in progressShow loading statestate = loading
Network failureDisplay error stateerror = network

Actions

ScenarioApp behaviorSDK output
Email enteredUpdate input stateemail = updated
Password enteredUpdate input statepassword = updated
Password visibility selectedToggle password visibilitypasswordVisible = true/false
Sign in selectedSubmit credentialsSign-in request triggered
Social sign-in selectedStart provider authenticationSocial authentication event
MFA code submittedVerify codeMFA request triggered
Authentication succeedsCreate session and continuestate = authenticated
Forgot password selectedOpen reset password flowNavigation event
Create account selectedOpen registration flowNavigation event
Close selectedDismiss sign-in screenNavigation event

Endpoint Resources

Sign In

PUT 

v3/sign-in

This endpoint returns the sign-in screen for anonymous users.

Query Parameters

NameTypeRequiredDescription
screen-modestringYesControls which sign-in experience to render (regular, wizard, direct clinic, affiliate, partner).

MFA

PUT 

v3/sign-in/mfa

This endpoint returns the MFA verification screen for completing sign-in.

Sign In

POST 

v3/sign-in

This endpoint authenticates a user with email and password.

Query Parameters

NameTypeRequiredDescription
screen-modestringYesControls which sign-in experience to render (regular, wizard, direct clinic, affiliate, partner).
emailstringYesAccount email address used for authentication.
passwordstringYesAccount password used for authentication.

Sign In With MFA

POST 

v3/sign-in/mfa

This endpoint authenticates a user with email and password and verifies the MFA one-time code.

Query Parameters

NameTypeRequiredDescription
screen-modestringYesControls which sign-in experience to render (regular, wizard, direct clinic, affiliate, partner).
emailstringYesAccount email address used for authentication.
passwordstringYesAccount password used for authentication.
mfastringYesOne-time code from an authenticator app. Required when MFA is enabled.

Social Sign In

POST 

v3/sign-in/social

This endpoint authenticates a user using a social identity token.

Query Parameters

NameTypeRequiredDescription
screen-modestringYesControls which sign-in experience to render (regular, wizard, direct clinic, affiliate, partner).
tokenstringYesFirebase identity token from the social provider used to authenticate the user.