
help me to fix this error. I use appwrite phone number authentication. after creating session with id and secret when I try to get user the I got this error

Hello! Do you can give us more context like the code giving the error or stack you're using?

here is the index.js file

registerUser and createSession method work well but when I run userAccount method then I got this error

Deleting code that has sensitive API key. You should recreate the key

You're using an API key with account methods which are not compatible

ok, how I can I fix this

What's your stack?

facing same problem here when getting current user. Unhandled Exception: AppwriteException: general_unauthorized_scope, app.apidxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@service.cloud.appwrite.io (role: applications) missing scope (account) (401)
. ihave all scopes enabled.


Also, if you need help please create a separate support post with your details
Recommended threads
- SSO google apple not working anymore
We use Apple and Google sso in our react native app. Everything worked fine until we noticed today that we see general argument error. We did not change anythi...
- Is my approach for deleting registered u...
A few weeks ago, I was advised not to use the registered users' id in my web app. Instead, I store the publicly viewable information such as username and email ...
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
