A promise that resolves to an IMX provider if successful, or null if no cached session exists
Connects to IMX, prompting user interaction if necessary.
A promise that resolves to an IMX provider
Connects to EVM and optionally announces the provider. Uses: Auth + Wallet packages
Optionaloptions: ConnectEvmArgumentsConfiguration options
The EVM provider instance
Logs in the user (works for both zkEVM and IMX). Uses: Auth class
Optionaloptions: LoginArgumentsLogin options
A promise that resolves to the user profile if logged in, null otherwise
Retrieves the current user's information. Uses: Auth class
A promise that resolves to the user profile if logged in, undefined otherwise
Retrieves the PKCE authorization URL for the login flow. Uses: Auth class
OptionaldirectLoginOptions: DirectLoginOptionsOptional direct login options
OptionalimPassportTraceId: stringOptional trace ID
A promise that resolves to the authorization URL
Handles the PKCE login callback. Uses: Auth class
The authorization code from the OAuth provider
The state parameter for CSRF protection
A promise that resolves to the user profile
Stores the provided tokens and retrieves the user profile. Uses: Auth class
The token response from device flow
A promise that resolves to the user profile
Links an external wallet to the user's Passport account.
Parameters for linking the wallet
A promise that resolves to the linked wallet information
If the user is not logged in (NOT_LOGGED_IN_ERROR)
Attempts to connect to IMX silently without user interaction.