cyremur
cyremur3mo ago

auth/core and convex-dev/auth seem to have diverged in typing

I used to run convex-auth demo fine on "@auth/core": "^0.34.1", "@convex-dev/auth": "^0.0.61", Now I've tried again and under "@auth/core": "^0.37.0", "@convex-dev/auth": "^0.0.71", I get a type error on the authprovider in convex/auth.ts
No description
2 Replies
Convex Bot
Convex Bot3mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
sshader
sshader3mo ago
Yep tracked at https://github.com/get-convex/convex-auth/issues/72 (workaround for now is npm install @auth/core@0.31.0). Will update Convex Auth to have @auth/core as a peer dependency + use the more recent version
GitHub
Type 'EmailConfig' is not assignable to type 'AuthProviderConfig' d...
Since @auth/core is pre-1.0 it's difficult to ensure we get the same version: the convex-auth requirement of "@auth/core": "^0.31.0", means exactly 0.31.0 will be installed,...