This is a Next.js app showcasing WebAuthn.
First, install the dependencies:
yarn
then create a local .env.local file with the relevant secrets:
# SMTP
NODE_ENV="development"
EMAIL_SERVER="smtp://client:secrete@smtp-server:port"
EMAIL_FROM="[email protected]"
# Mongo
MONGODB_URI=""
# Main DB
NEXT_AUTH_DBNAME=""
# WebAuth DB
WEBAUTHN_DBNAME=""
WEBAUTHN_APP_DOMAIN=""
WEBAUTHN_APP_ORIGIN=""
WEBAUTHN_APP_NAME="Webauthn Demo App"
# NextAuth
NEXTAUTH_URL=""
finally, run the development server:
yarn dev
Open http://localhost:3000 with your browser to see the result.