Good afternoon, for those experienced in GitHub API I have a question.
I am developing an app in which I want to do a login with github, but it is necessary that to enter this user must be part of our organization, the query is. What endpoint of the api should I paste and with what information to get this?
I read that this way you should be able to see if the user is a member of the org.
https://api.github.com/orgs/:org/memberships/:user/
But try to use it and ask for authentication, try to pass a user's acces_token and a personal token but it did not work, still do not allow me to see that info.
Does anyone know what is the way to do this?