
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
- Stuck in "deleting"
my parent element have relationship that doesnt exist and its stuck in "deleting", i cant delete it gives me error: Collection with the requested ID could not b...
- Help with 409 Error on Relationship Setu...
I ran into a 409 document_already_exists issue. with AppWrite so I tried to debug. Here's what I've set up: Collection A has 3 attributes and a two-way 1-to-m...
- Database Double Requesting Error.
I am getting error for creating new document in an collection with new ID.unique() then too getting error of existing document. When button is pressed one docum...
