feat: implement WebAuthn Passkeys register/login API and client onboarding UI

This commit is contained in:
2026-05-27 21:28:15 +02:00
parent db8b454a9e
commit 35479cfff3
11 changed files with 1276 additions and 295 deletions
+4
View File
@@ -1,6 +1,7 @@
import express from 'express'
import cors from 'cors'
import dotenv from 'dotenv'
import authRouter from './routes/auth.js'
dotenv.config()
@@ -10,6 +11,9 @@ const PORT = process.env.PORT || 5000
app.use(cors())
app.use(express.json())
// Mount routes
app.use('/api/auth', authRouter)
// Health check endpoint
app.get('/api/health', (req, res) => {
res.json({