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
.env
if you prefer another network. - Endpoints:
BUNDLER_URL
andPAYMASTER_URL
use 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.