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
- proccessing problems
A database schema operation is stuck in my Frankfurt project. In the matryq database, the workspaceId attribute of the coaching_activity_entries collection rema...
- User columns stuck on processing
Hi — on Appwrite Cloud (Free), Project ID 69d7dd8200098ed8560c, database mylestone-db. Attributes/columns are stuck in "processing" indefinitely across two coll...
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...