Reputation: 1
i tried firebase authentication using GitHub in my flutter project. i got access token from it but i struggle to get organizations list of autheticated user using this token
link of this https://docs.github.com/en/rest/orgs/orgs?apiVersion=2022-11-28#list-organizations-for-the-authenticated-user
Upvotes: 0
Views: 34
Reputation: 36
You need your token to have 'repo' scope. When you create a classic token, you can choose what scope it will have. in this case your current token does not cover the scope of the repository.
You need to create a new token with that scope.
Upvotes: 0