The "Sign in with Aptos" (SIWA) standard introduces a secure and user-friendly way for users to authenticate to off-chain resources by proving ownership of their Aptos account. It simplifies the authentication process by replacing the traditional connect + signMessage flow in the wallet standard with a streamlined one-click signIn method. SIWA leverages Aptos accounts to avoid reliance on traditional schemes like SSO while incorporating security measures to combat phishing attacks and improve user visibility.
Check out .tool-versions for runtime requirements.
- Clone the repository:
git clone https://github.com/aptos-labs/sign-in-with-aptos.git
cd sign-in-with-aptos- Install runtimes (mise)
mise installIf mise is not installed, check out their Getting Started page.
- Install dependencies:
pnpm install- Build packages:
pnpm buildFrom the root of the repository, run:
pnpm vite-exampleThis will start up both the Vite frontend and the Hono backend for SIWA using Turborepo.