Rank 1: Thread
Hello guys i am trying to make a new user and session only with phone number but i am getting this error User (role:guests) missing scope (account) i am using this code
try { // Create phone session const userId = ID.unique() await account.createPhoneSession(userId,phone);; return userId; } catch (error) { console.log(error); return error
} }```
in the appwrite docs it says that when the userId doesnt exists it creates a new user but it isnt working