mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
## Description Add support to login with passkeys. Passkeys can be added via the user security settings page. Note: Currently left out adding the type of authentication method for the 'user security audit logs' because we're using the `signIn` next-auth event which doesn't appear to provide the context. Will look into it at another time. ## Changes Made - Add passkeys to login - Add passkeys feature flag - Add page to manage passkeys - Add audit logs relating to passkeys - Updated prisma schema to support passkeys & anonymous verification tokens ## Testing Performed To be done. MacOS: - Safari ✅ - Chrome ✅ - Firefox ✅ Windows: - Chrome [Untested] - Firefox [Untested] Linux: - Chrome [Untested] - Firefox [Untested] iOS: - Safari ✅ ## Checklist <!--- Please check the boxes that apply to this pull request. --> <!--- You can add or remove items as needed. --> - [X] I have tested these changes locally and they work as expected. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced Passkey authentication, including creation, sign-in, and management of passkeys. - Added a Passkeys section in Security Settings for managing user passkeys. - Implemented UI updates for Passkey authentication, including a new dialog for creating passkeys and a data table for managing them. - Enhanced security settings with server-side feature flags to conditionally display new security features. - **Bug Fixes** - Improved UI consistency in the Settings Security Activity Page. - Updated button styling in the 2FA Recovery Codes component for better visibility. - **Refactor** - Streamlined authentication options to include WebAuthn credentials provider. - **Chores** - Updated database schema to support passkeys and related functionality. - Added new audit log types for passkey-related activities. - Enhanced server-only authentication utilities for passkey registration and management. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
75 lines
1.9 KiB
JSON
75 lines
1.9 KiB
JSON
{
|
|
"name": "@documenso/web",
|
|
"version": "1.2.3",
|
|
"private": true,
|
|
"license": "AGPL-3.0",
|
|
"scripts": {
|
|
"dev": "next dev -p 3000",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"lint": "next lint",
|
|
"e2e:prepare": "next build && next start",
|
|
"lint:fix": "next lint --fix",
|
|
"clean": "rimraf .next && rimraf node_modules",
|
|
"copy:pdfjs": "node ../../scripts/copy-pdfjs.cjs"
|
|
},
|
|
"dependencies": {
|
|
"@documenso/api": "*",
|
|
"@documenso/assets": "*",
|
|
"@documenso/ee": "*",
|
|
"@documenso/lib": "*",
|
|
"@documenso/prisma": "*",
|
|
"@documenso/trpc": "*",
|
|
"@documenso/ui": "*",
|
|
"@hookform/resolvers": "^3.1.0",
|
|
"@simplewebauthn/browser": "^9.0.1",
|
|
"@simplewebauthn/server": "^9.0.3",
|
|
"@tanstack/react-query": "^4.29.5",
|
|
"cookie-es": "^1.0.0",
|
|
"formidable": "^2.1.1",
|
|
"framer-motion": "^10.12.8",
|
|
"lucide-react": "^0.279.0",
|
|
"luxon": "^3.4.0",
|
|
"micro": "^10.0.1",
|
|
"next": "14.0.3",
|
|
"next-auth": "4.24.5",
|
|
"next-plausible": "^3.10.1",
|
|
"next-themes": "^0.2.1",
|
|
"perfect-freehand": "^1.2.0",
|
|
"posthog-js": "^1.75.3",
|
|
"posthog-node": "^3.1.1",
|
|
"react": "18.2.0",
|
|
"react-dom": "18.2.0",
|
|
"react-dropzone": "^14.2.3",
|
|
"react-hook-form": "^7.43.9",
|
|
"react-hotkeys-hook": "^4.4.1",
|
|
"react-icons": "^4.11.0",
|
|
"react-rnd": "^10.4.1",
|
|
"remeda": "^1.27.1",
|
|
"sharp": "^0.33.1",
|
|
"ts-pattern": "^5.0.5",
|
|
"ua-parser-js": "^1.0.37",
|
|
"uqr": "^0.1.2",
|
|
"zod": "^3.22.4"
|
|
},
|
|
"devDependencies": {
|
|
"@documenso/tailwind-config": "*",
|
|
"@simplewebauthn/types": "^9.0.1",
|
|
"@types/formidable": "^2.0.6",
|
|
"@types/luxon": "^3.3.1",
|
|
"@types/node": "20.1.0",
|
|
"@types/react": "18.2.18",
|
|
"@types/react-dom": "18.2.7",
|
|
"@types/ua-parser-js": "^0.7.39",
|
|
"typescript": "5.2.2"
|
|
},
|
|
"overrides": {
|
|
"next-auth": {
|
|
"next": "$next"
|
|
},
|
|
"next-contentlayer": {
|
|
"next": "$next"
|
|
}
|
|
}
|
|
}
|