
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
- Webhooks not working?
I have this webhook in appwrite but unfortunately this webhook isn't being triggered whenever I change something in the database. I've put the right databaseID ...
- Request: When Will Appwrite Sites Waitli...
Hey team! 👋 I recently joined the waitlist for Appwrite Sites on Cloud and got the confirmation email that says: "You've successfully joined the Sites waitli...
- React native Google OAuth not working - ...
## Code: *Pretty much just copied from appwrite docs* ```javascript const signInWithOAuth = async (provider) => { setLoading(true); try { // Crea...
