Skip to main content

User Information

getUserInfo()

Retrieves detailed information about the currently logged-in user. Method Signature:
Returns:
Requirements:
  • User must be logged in
Example:

Multi-Factor Authentication (MFA)

setupOrUpdateMfa()

Sets up or updates multi-factor authentication for the user’s account. This method guides the user through the MFA setup process using passkeys. Method Signature:
What happens during MFA setup:
  1. The method ensures the wallet is initialized
  2. Opens the MFA setup flow and guides the user through passkey creation/verification
  3. Updates the user’s MFA status in the system, including loginResult to reflect the new MFA status
Requirements:
  • User must be logged in
Important Notes:
  • MFA is generally required: If your dApp doesn’t trigger setupOrUpdateMfa() after login and the user hasn’t set up MFA, it will be triggered automatically with any wallet related request, requiring the user to complete setup before the request can be processed
  • Currently only passkey is supported as the MFA method
  • Only MFA setup is currently implemented, not updates: It’s recommended to check if the user has already set up MFA before calling this method to avoid unnecessary prompts
  • Abstract Account Address availability: The abstract account address will only be returned in user info and token if MFA is set up

MFA Setup Integration

Since MFA is generally required, you can either: Option 1: Proactive Setup (Recommended)
Option 2: Let AIR Kit Handle Automatically Simply proceed with wallet operations - MFA will be prompted automatically if required.