themouthgod (Dr. Owen Hooper)Original post
Apple Developer
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?
Summary
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.