[Solved] /admin/ needs public git gateway repo access to Log In

Hi, tried to make the Github repo private, but then couldn’t log in to my admin section.
Is there a way to make the repo private and still allow Log In to Admin?

You’ll need to regenerate your token: https://docs.netlify.com/visitor-access/git-gateway/#getting-started

RECONNECT AFTER CHANGING REPOSITORY PERMISSIONS

If you change ownership on your repository, or convert a repository from public to private, you may need to reconnect Git Gateway with proper permissions:

  • Go to Settings > Build & deploy > Continuous Deployment > Build settings to re-link the repository.
  • Go to Settings > Identity > Services > Git Gateway to add a new API access token following the instructions in the section above.
3 Likes

Thanks! that solved it :+1:

1 Like