This project is a demonstration of integrating the Passport SDK for user registration, authentication, and message signing within a Next.js application. It showcases how to set up a basic authentication flow using Webauthn with @0xpass/passport
and @0xpass/webauthn-signer
, along with blockchain interactions via Viem.
To get the project up and running on your local machine, follow these steps:
-
Clone the repository First, clone the project repository to your local machine using Git:
-
Install dependencies Navigate to the project directory and install the necessary dependencies using npm, yarn, or pnpm:
- npm:
npm install
- yarn:
yarn install
- pnpm:
pnpm install
This command installs all dependencies required for the project, including the Passport SDK and related libraries.
- Run the development server Start the development server to view the project in your web browser:
- npm:
npm run dev
- yarn:
yarn run dev
- pnpm:
pnpm run dev
Open http://localhost:3000 in your browser to see the application.
You can start editing the project by modifying pages/index.js or any other file in the pages directory. Save your changes, and the page will automatically update to reflect them.