Skip to main content
Add AIR login and session handling to your web app. You can use login without integrating credential issuance or verification. To see the login experience first, open the single sign-on demo. It is a click-through, not a live session.

Before you start

  • An AIR Developer Dashboard account and Partner ID
  • A web app running in the browser, with its origin added in Account → Domains
  • A supported Node.js version for your framework and AIR Kit
You don’t need a database, issuer backend, credential program, or Partner JWT for the standard AIR login shown here.

Step 1: Install the SDK

Step 2: Get your Partner ID

  1. Go to the Developer Dashboard and sign in by connecting your EVM wallet. Wallet connect
  2. Open Account → General Settings and copy your Partner ID. Quickstart - get partner ID

Step 3: Initialize and log in

Create the service once in browser code. Call loginToAir() from a user action, such as a login button; do not run this helper during server rendering.
This will:
  • Initialize the AirService within the sandbox environment
  • Present the SSO Login screen of AIR Kit for users to log in
  • Handle authentication and session setup
  • Establish the user session used by Account Services and subsequent credential flows
Login does not activate your partner’s issuer or verifier functionality. Credential operations also require registered partner authentication, the appropriate Dashboard setup, and an active issuance or verification program.

Session lifecycle

Use service.isLoggedIn to check the current session. To sign the user out, call:
Handle cancelled login and errors in your UI, and confirm that the user can sign out and log in again. For session rehydration and user details, see Sessions & user info.

Next steps