Sullemanhossam
Sullemanhossam2mo ago

Could not verify authentication code

Hi there, I’m using Convex Auth, and when a user confirms their email verification code, an error is thrown.
chunk-2VD2VTOI.js?v=b25afc1d:102 [CONVEX A(auth:signIn)] [Request ID: fe0acd4e32e28276] Server Error
Uncaught Error: Could not verify code
at handleEmailAndPhoneProvider (../../node_modules/@convex-dev/auth/src/server/implementation/signIn.ts:116:4)
at async signInViaProvider (../../node_modules/@convex-dev/auth/src/server/implementation/index.ts:673:4)
at async authorize [as authorize] (../../node_modules/@convex-dev/auth/src/providers/Password.ts:209:10)
at async handleCredentials (../../node_modules/@convex-dev/auth/src/server/implementation/signIn.ts:189:17)
at async handler (../../node_modules/@convex-dev/auth/src/server/implementation/index.ts:416:10)

chunk-2VD2VTOI.js?v=b25afc1d:102 [CONVEX A(auth:signIn)] [Request ID: fe0acd4e32e28276] Server Error
Uncaught Error: Could not verify code
at handleEmailAndPhoneProvider (../../node_modules/@convex-dev/auth/src/server/implementation/signIn.ts:116:4)
at async signInViaProvider (../../node_modules/@convex-dev/auth/src/server/implementation/index.ts:673:4)
at async authorize [as authorize] (../../node_modules/@convex-dev/auth/src/providers/Password.ts:209:10)
at async handleCredentials (../../node_modules/@convex-dev/auth/src/server/implementation/signIn.ts:189:17)
at async handler (../../node_modules/@convex-dev/auth/src/server/implementation/index.ts:416:10)

https://gist.github.com/sullemanhossam/4fb307f0e9d433bd3abdaf18d6a9e1e3 I have I've also included the data that would have been supplied Im using custom fields auth and ant-design ive had to make modifications to the example
6/24/2025, 10:43:18 AM [CONVEX M(auth:store)] [INFO] '`auth:store` type: retrieveAccountWithCredentials'
6/24/2025, 10:43:18 AM [CONVEX M(auth:store)] [INFO] '`auth:store` type: verifyCodeAndSignIn'
6/24/2025, 10:43:18 AM [CONVEX M(auth:store)] [ERROR] 'Invalid verification code'
6/24/2025, 10:43:18 AM [CONVEX M(auth:store)] [INFO] '`auth:store` type: retrieveAccountWithCredentials'
6/24/2025, 10:43:18 AM [CONVEX M(auth:store)] [INFO] '`auth:store` type: verifyCodeAndSignIn'
6/24/2025, 10:43:18 AM [CONVEX M(auth:store)] [ERROR] 'Invalid verification code'
Gist
Convex verificaton code not matching
Convex verificaton code not matching . GitHub Gist: instantly share code, notes, and snippets.
3 Replies
Convex Bot
Convex Bot2mo 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!
erquhart
erquhart2mo ago
Mind sharing the solution for future searchers?
Sullemanhossam
SullemanhossamOP2mo ago
Everything is fine it was just a case of oversight submitting 6 digits of the eight required

Did you find this page helpful?