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
- Google login on mobile not working
Hi the gg login auth in mobile not working. No error show. But the user couldnt login in Attached is the video. Desktop is working well and im using custom doma...
- Appwrite 1.8.1 TablesDB Permissions Issu...
Hi - I'm migrating a newer VueJS web application from Supabase to Appwrite. I'm looking for an experienced Appwrite Developer to help me solve a permissions iss...
- Failed to create function
Hey everyone 👋 I'm having an issue creating Functions on Appwrite Cloud and I'm not sure if it's a platform bug or something wrong in my project. When I try t...