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

32 Views Asked by At

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

1

There are 1 best solutions below

1
Jean Chiclla On

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.