feat: implement WebAuthn Passkeys register/login API and client onboarding UI
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user