FlohF
Convex Community2mo ago
3 replies
Floh

BetterAuth Passkeys Plugin peer dependencies mismatch

🪲Bug ReportAdvice
- Passkeys are listed as a supported plugin here
- Trying to install passkey plugin using
npm install @better-auth/passkey
results in dependency errors

Better Auth wants version
better-auth@"1.4.14"
but Convex pins better-auth@"1.4.9"

npm error Found: better-auth@1.4.9
npm error node_modules/better-auth
npm error   better-auth@"1.4.9" from the root project
npm error
npm error Could not resolve dependency:
npm error peer better-auth@"1.4.14" from @better-auth/passkey@1.4.14
npm error node_modules/@better-auth/passkey
npm error   @better-auth/passkey@"*" from the root project


bumping it causes a mismatch with
"@convex-dev/better-auth": "^0.10.10",


bash
npm warn Found: better-auth@1.4.9
npm warn node_modules/better-auth
npm warn   better-auth@"1.4.14" from the root project
npm warn   2 more (@better-auth/passkey, @convex-dev/better-auth)
npm warn
npm warn Could not resolve dependency:
npm warn peer better-auth@"1.4.9" from @convex-dev/better-auth@0.10.10


Any guidance here? I have so far not really learned how to handle things like this. Is using --force or --legacy-peer-dependencies generally safe?
Supported plugins for Convex + Better Auth
Was this page helpful?