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
- Server Down
Appwrite services are down. When will they start working again?
- My cloud functions failing 3 days ago (P...
Hi, My cloud function using python has been failing for 3 days, I didn't push any new deployments... Its something to do with it not recognising the entrypoi...
- Looking for a Partner