Back

user_invalid_token on updateVerification email

  • 0
  • Self Hosted
  • Flutter
DennisLBC
23 Mar, 2024, 20:47

I just implemented email verification and I keep getting this error as a response even though I know for a fact the correct userId and secret are being sent. But worse, I can see that the account is being verified correctly on the server so its working as I would expect except that its returning this error which makes handling the UI for the user really hard cause it looks like it failed when it didn't.

AppwriteException: user_invalid_token, Invalid token passed in the request. (401)

TL;DR
Developers are experiencing an 'invalid_token' error message despite correct userId and secret being sent during email verification. The account is verified on the server, but the error persists, making UI handling difficult. The issue could be due to incorrect implementation or missing headers in the request. Double-check the token generation and headers to ensure correct information is being passed during verification.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more