Skip to content
Back

Tricky situation with Phone Number Verification

  • 1
  • Auth
themouthgod (Dr. Owen Hooper)
16 Dec, 2024, 22:00

Hey guys! Dealing with an issue with login by phone verification. I managed to pull it off about a week ago but for the life of me can't seem to make it work again. I can create a token with account.CreatePhoneToken, that's all being logged in console and seems fine. However, I cannot get past const session = await account.createSession(userId, verificationCode); The userId is coming from the token and the verificationCode is the 6 digit code coming from the text I recieve. Am I missing something obvious here?

TL;DR
Developers having trouble with phone number verification. They can create a token successfully but are failing at the createSession step with an invalid token error. The issue might be related to how they are passing the userId and verification code.
themouthgod (Dr. Owen Hooper)
16 Dec, 2024, 22:04

for context the exact error is [AppwriteException: Invalid token passed in the request.]

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