
i am using appwrite in my project but i can't add the userName to the logged in user i am a bit confused. Here is the code to sending otp and verification //create account with phone number async createAccountWithPhone(phoneNumber) { try { return await this.account.createPhoneToken(ID.unique(), phoneNumber); } catch (error) { console.log("Error::auth.js::createAccountWithPhone :", error); throw error; } } //verify phone number async verifyPhoneNumber(userId, otp) { try { return await this.account.updatePhoneSession(userId, otp); } catch (error) { console.log("Error::auth.js::verifyPhoneNumber :", error); throw error; } }
Recommended threads
- User Queries not working
When I try to use queries on users, it gives error saying invalid query method. Now, I dont know whether it is possible or not to query users or it’s just some...
- Email OTP Mail Getting Delayed by 10 min...
I just noticed I am reciving delayed otp emails on frankfurt server we are on free plan now but we are planning to change to get on to paid plan can anyone plea...
- Invalid document structure: Unknown attr...
I have an attribute, who I deleted but it still gives error saying that Invalid document structure: Unknown attribute: "financialAidAvailable". Because of which...
