markbates / goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
https://blog.gobuffalo.io/goth-needs-a-new-maintainer-626cd47ca37b
MIT License
5.2k stars 566 forks source link

github: Add ErrNoVerifiedGitHubPrimaryEmail error #508

Closed penberg closed 1 year ago

penberg commented 1 year ago

Add a ErrNoVerifiedGitHubPrimaryEmail error to FetchUser() function so that callers have the chance to handle the error explicitly. For example, instead of forwarding the error message, we can more easily direct users to a HTML page explaining the problem.