
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
- [Node.js SDK] Bypass 2GB file limit?
Hello. Using either InputFile.fromPath or InputFile.fromBuffer throws this error: File size (2295467305) is greater than 2 GiB Bucket limit etc. is setup corre...
- Relationship null, even when relationshi...
Hi Everyone, im experiencing issues with set relation data. When im setting the document id from the related database most of them seem fine, except one table. ...
- Website shows just the HTML in safari
Hi y'all, I've been working on a project for a while but, for some reason it just shows the html in safari, It work perfectly fine in firefox and chrome, but sa...
