This is a Next.js 15 project setup with Supabase, Simplewebauthn for Passkey, Tailwind v4, Shadcn
https://github.com/user-attachments/assets/90708b4c-53f9-46f7-989a-7cb2e2e0cce7
You need install Docker Desktop in your system (Windows, macOS, or Linux).
Step 1
configure your email SMTP in /project/supabase/config.toml
[auth.email.smtp]
enabled = true
host = "sandbox.smtp.mailtrap.io"
port = 2525
user = ""
pass = ""
admin_email = "[email protected]"
sender_name = "Project"
for testing emails you can use Mailtrap
Step2
run supabase, if you run first time then you need to wait a few minutes to download images for Docker
npx supabase start
Step 3
rename file development.env
to .env.local
Step 4
after supabase succesfully run copy keys from terminal to .env.local
file
ANON_KEY
SERVICE_ROLE_KEY
AUTH_JWT_SECRET
Supabase studio link http://localhost:54323
Step 1
run npm to download all dependencies:
npm run i
Step 2
run the development server:
npm run dev
Project link http://localhost:3000/auth/sign-up
Based on Blog - Adding passkeys to a Supabase app without using third parties
To learn more, take a look at the following resources: