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
- Rate Limit of project
AppwriteException: Rate limit for the current endpoint has been exceeded. Please try again after some time. So , how much time I have to wait and why does it h...
- Update User Error
```ts const { users, databases } = await createAdminClient(); const session = await getLoggedInUser(); const user = await users.get(session.$id); if (!use...
- apple exchange code to token
hello guys, im new here 🙂 I have created a project and enabled apple oauth, filled all data (client id, key id, p8 file itself etc). I generate oauth code form...