Titan Sathish
Titan Sathish

Reputation: 1

List of organizations for authenticated user , how to add the scopes for this api?

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

Postman Image here

enter image description here

Upvotes: 0

Views: 34

Answers (1)

abl.pe
abl.pe

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

Related Questions