Sign in with Face ID, Touch ID, Windows Hello or a security key, keeping email + password as the primary method. - API: BetterAuth passkey plugin deriving rpID/origin from WEB_APP_URL (the browser origin), with residentKey "required" because sign-in is username-less. New Passkey model mapped to the passkeys table. - Web: conditional UI in the email field plus an explicit "Entrar con passkey" button; cancelled ceremonies are ignored. - Settings: create, rename and delete passkeys with TanStack Query. - Pin @better-auth/passkey to 1.7.7: its peers lock better-call, so newer versions break the API.
40 lines
1.0 KiB
JSON
40 lines
1.0 KiB
JSON
{
|
|
"name": "@superlist/api",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun run --watch src/index.ts",
|
|
"build": "bun build src/index.ts --target bun --outdir dist",
|
|
"start": "bun run dist/index.js",
|
|
"lint": "biome check .",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "bun test",
|
|
"db:generate": "prisma generate",
|
|
"db:migrate": "prisma migrate dev",
|
|
"db:deploy": "prisma migrate deploy",
|
|
"db:studio": "prisma studio"
|
|
},
|
|
"dependencies": {
|
|
"@better-auth/passkey": "1.7.7",
|
|
"@hono/zod-validator": "^0.9.1",
|
|
"@prisma/adapter-pg": "^7.10.0",
|
|
"@prisma/client": "^7.10.0",
|
|
"@superlist/shared": "workspace:*",
|
|
"better-auth": "^1.7.7",
|
|
"hono": "^4.13.13",
|
|
"pg": "^8.23.1",
|
|
"pino": "^10.4.0",
|
|
"pino-pretty": "^13.2.0",
|
|
"resend": "^6.32.1",
|
|
"zod": "^4.6.7"
|
|
},
|
|
"devDependencies": {
|
|
"@types/bun": "^1.4.3",
|
|
"@types/pg": "^8.23.1",
|
|
"dotenv": "^18.0.7",
|
|
"prisma": "^7.10.0",
|
|
"typescript": "~6.0.2"
|
|
}
|
|
}
|