AWS Amplify -- Github permissions

I am facing Bad credential error while applying aws amplify module. I have tried to provide repository with classic as well as fine grain token as well as public & private repository. But still the error persists. Please suggest any solutions on how to resolve this error and what github permissions are required in addition to the repo permission.

following is the error:

Error: creating Amplify App (amisuse1xamplifydec01): operation error Amplify: CreateApp, https response error StatusCode: 400, RequestID: ca955c2c-b195-48c3-85d7xxxxxxxxx , BadRequestException: There was an issue setting up your repository. Please try again later.({“message”:“Bad credentials”,“documentation_url”:“GitHub REST API documentation - GitHub Docs”})