Hello,
Actually i don't receive any code on my phone.
I'm using the phone auth by SMS, i don't have any errors, i used differents phone numbers but i don't have the code : is there some problems with the server or whatever ?
Thanks.
Are you using Appwrite cloud? What's your code?
Yep but yesterday everything working but today it's not and i don't change anything in my code
My code :
try {
const users = new Users(args.client);
const account = new Account(args.client);
const phoneNumber = args.reqBody.phone.trim();
const result = await users.list([Query.equal("phone", phoneNumber)]);
// If user exist create phone token and return to the client that user exist so it can redirect to the OTP client view.
if (result.users.length) {
await account.createPhoneToken(result.users[0].$id, phoneNumber);
return args.res.json(
{ userExist: true, userId: result.users[0].$id },
200,
args.CORSHeadersResponse,
);
}
// User does not exist do not send SMS and indicate to the client to redirect to the personal informations view.
return args.res.json({ userExist: false }, 200, args.CORSHeadersResponse);
} catch (err) {
return args.res.json({ error: err.message }, 500, args.CORSHeadersResponse);
}
Please DM me the phone number and the exact timestamp you last tried the phone auth
And your project id
Yes, i'm going to send you all the informations, thanks
Recommended threads
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- My projects were deleted
Hello everyone, My projects were for some reason deleted. I got an email informing me about project inactivity, when I clicked to activate it again, it was sil...