To authenticate users using Stage Wallet, call the Stage Wallet Authentication API, which streamlines wallet creation and user session handling. Here’s how it works:
The user signs in or signs up by invoking the API endpoint, providing a signature from their Ethereum wallet.
If it’s the user’s first time, the system automatically creates a wallet on the Ethereum network on their behalf.
The API validates the signature, verifies the wallet, and returns a secure Bearer access token.
Your application can then use this token in the Authorization header (
Bearer TOKEN
) to authenticate all subsequent requests, like listing plaques, preparing or buying a plaque, and accessing user profile data
This method enables a frictionless and secure decentralized login without relying on third-party wallets or centralized authentication services.