This minimalistic example application demonstrates how to use Passkeys as an authentication mechanism for a Safe Account. It leverages the WebAuthn API to interact directly with the user's device credentials. A paymaster is configured to sponsor the user operation gas fees.
Follow these steps to get the example running:
-
Clone the Repo
git clone [email protected]/candidelabs/safe-passkeys-react-example.git
-
Install Dependencies
cd safe-passkeys-react-example npm install -
Configure Environment Variables
cp .env.example .env
- Default Network: Examples run on Arbitrum Sepolia. Change your
.envif you prefer another network. - Endpoints:
BUNDLER_URLandPAYMASTER_URLuse public endpoints. You can get your own dedicated endpoints from Candide Dashboard.
- Default Network: Examples run on Arbitrum Sepolia. Change your
-
Run the app
npm run dev
Safe Passkeys documentation can be found here.