Using AIR Kit as your authentication provider
By default, we provide the following methods for users:- Google Login
- Passwordless Email Login
- Wallet Login (EOA wallet support)
- Web
- Flutter
authToken: (highly recommended but optional) pass in your Partner JWT via the parameter with yourpartnerIdinside the payload.- This would trigger the AIR Kit login dialog with built-in login methods for the user to choose from.
Session ConfigurationTo configure locale and currency settings, pass
sessionConfig to the init() method. See Language & Currency Configuration for details.Custom Auth (Bring your own Auth)
Instead of using AIR Kit as your authentication provider, AIR Kit supports users that have been already authenticated by your system to skip logging in again when using AIR Kit. To achieve this, pass in additional properties in the Partner JWT during login() , specificallyemail and partnerUserId .
When an email is provided, we will verify via a one-time password sent to the specified email since it is used as an identifier in the AIR ecosystem.
An example JWT looks like following:
User Sessions
After successful login, anAirLoginResult object will be returned, which also contains a property token generated by us containing the following information:
Session management
AIR Kit automatically handles session management out of the box. When users return to your app, they would be automatically logged in provided that they have not logged out in the last 30 days.- Web
- Flutter
- To require users to log in every time they visit your app, set
skipRehydrationto true when initializing the SDK. - Call
isLoggedInto check the login state of a user. - To log out, call
logout() - To update locale or currency settings after initialization, use
updateSessionConfig():
EOA Wallet Authentication (optional add-on)
EOA-based authentication is available as an optional customization on top of the default AIR Account login flow. This allows your users to authenticate using any EOA wallet (e.g., MetaMask, Trust Wallet) while still benefiting from the AIR Account identity stack. The EOA wallet is used only for authentication and identity verification. It does not replace the underlying MPC-based account abstraction or control mechanisms. In effect, the wallet address serves purely as a login identifier, while account control remains securely managed by AIR.Why enable EOA auth?
- Seamlessly supports existing “Connect Wallet” flows
- Zero disruption to current users
- Adds AIR Account–powered authentication without requiring UX changes
- Works alongside Web2 and other login methods