User Information
getUserInfo()
Retrieves detailed information about the currently logged-in user. Method Signature:- User must be logged in
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:- The method ensures the wallet is initialized
- Opens the MFA setup flow and guides the user through passkey creation/verification
- Updates the user’s MFA status in the system, including
loginResultto reflect the new MFA status
- User must be logged in
- 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