Error message 'Resource not accessible by personal access token' when trying to perform mutation in GraphQL #56320
Answered by
carlosolimpio
Jun 5, 2023
Replies: 1 comment
|
Turned out what I was missing is to perform mutations on behalf a user you have to provide a login using the OAuth2 app authentication method. This way you prompt the permissions your app is using on behalf of the user. Check here in the docs: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps Ps: I had checked this docs before posting the question but did not get the purpose of OAuth2 apps. |
0 replies
Answer selected by
carlosolimpio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Turned out what I was missing is to perform mutations on behalf a user you have to provide a login using the OAuth2 app authentication method. This way you prompt the permissions your app is using on behalf of the user. Check here in the docs: https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/authorizing-oauth-apps
Ps: I had checked this docs before posting the question but did not get the purpose of OAuth2 apps.