[SOLVED]User (role:guests) missing scope (account) trying to create new user with phone
- 0
- Users
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
what makes you say this isn't working? Do you see a new user in your Appwrite project with the phone number used in the API request?
No, i am just getting the error, no user is created
would you please check the network logs to see the API requests made?
so the error you're seeing is for account.get().
Please look for the create phone session API call. it should say phone
Thank you, it was a function trying to get the user before createPhoneSession
[SOLVED]User (role:guests) missing scope (account) trying to create new user with phone
Recommended threads
- Trying to Figure out how to delete a use...
If i have a button in an app that allows a user to delete their account, can I not just call a function from my swift app to Appwrite to have the account delete...
- Expected a value of type 'bool', but got...
I am trying to get current User, but get this error message when I do. I get back user prefs, but error comes from trying account.get() So I am getting User. I ...
- Problem accessing api via local host.
I think i set the Endpoint correctly in my config.ts als the cloud.appwrite url but when i try to create a user I get this Error message: Access to XMLHttpReque...