Hey for one of my use cases I need to get my current logged in user's team. But by default the scope to read the team is not added.
const teams = appwriteClient.teams;
const myTeams = await teams.list();
The above code returns :
api-1 | message: 'User (role: guests) missing scope (teams.read)',
api-1 | code: 401,
api-1 | type: 'general_unauthorized_scope',
api-1 | version: '1.6.2'
api-1 | }
How do I add the teams.read scope. I'm using the node-sdk with google oauth2.
I can add scopes, but these are internal google oauth scopes, not appwrite ones.
Recommended threads
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- 401 - Project not accessible in this reg...
Hi Appwrite team, I’m experiencing a Cloud Console issue with my NYC region project. Problem: - Some Console pages return: “401 - Project is not accessible ...