
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
- Attributes stuck on proccessing
Hello, I'm trying to create this collection and for the third time there's always an attribute stuck on processing, the development of my project is stuck for ...
- Checkout error: Error: Request body is e...
Im absolutely stumped here. ```Initializing Stripe functionality... stripe.ts:74 Calling Appwrite function with payload: {price_id: 'price_1RdZzoDCvcSnLsdCCu8z3...
- Appwrite documents and Swift codable
The object I use to create a document is different than the object I receive when I list documents. Do I create an object that’s used to create a document and a...
