Overview
Moralis Auth API enables secure Web3 authentication by letting users prove wallet ownership through message signing. Instead of managing passwords or OAuth flows, Auth API uses cryptographic signatures to verify that users control their wallets - the native identity primitive of Web3.What Is Auth API?
Auth API provides a complete wallet-based authentication flow that:- Generates secure challenge messages for users to sign
- Verifies wallet signatures cryptographically
- Returns a unique user identifier (
profileId) across sessions - Works with both EVM chains and Solana
How It Works
The authentication flow consists of three steps:- Request Challenge - Your backend requests a challenge message from Moralis
- User Signs - The user signs the challenge message with their wallet
- Verify Signature - Your backend sends the signature to Moralis for verification
profileId that uniquely identifies the user - regardless of which wallet or chain they used to authenticate.
Key Features
Auth API includes:- EIP-4361 Standard - Built on Sign-In with Ethereum for broad wallet compatibility
- Unified Profile ID - Single identifier per user across wallets and chains
- Multi-Wallet Support - Users can link multiple wallets to one profile
- Cross-Chain - Works with EVM chains and Solana
- Stateless Verification - No session management required on Moralis side
Supported Networks
Auth API supports wallet authentication across:- EVM Chains - Ethereum, Polygon, BNB Chain, Arbitrum, Optimism, Base, Avalanche, and more
- Solana - Full support for Solana wallet signatures
Wallet Integrations
Auth API works with popular wallet connection libraries:- MetaMask
- WalletConnect
- RainbowKit
- Coinbase Wallet
- Web3Auth
- Magic.Link
- Particle Network
Common Use Cases
Auth API is commonly used for:- dApp Authentication
(secure login without passwords) - Gated Content
(verify wallet ownership before granting access) - NFT Verification
(prove ownership for holder-only features) - Multi-Wallet Accounts
(link multiple wallets to a single user profile) - Cross-Chain Identity
(unified identity across EVM and Solana)
Limitations
Auth API currently does not support:- EIP-1271 Signatures - Smart contract wallet signatures (e.g., Safe, Argent) are not supported. Only EOA (Externally Owned Account) wallets can authenticate.

