SullemanhossamS
Convex Community9mo ago
3 replies
Sullemanhossam

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)

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'
Gist
Convex verificaton code not matching . GitHub Gist: instantly share code, notes, and snippets.
Convex verificaton code not matching
Was this page helpful?