Documentation ¶
Index ¶
Constants ¶
View Source
const NoopEmail = ""
Variables ¶
View Source
var ( ErrNoVerifiedPrimaryEmail = errors.New("goth: no verified primary email found") ErrFailedFetchUser = errors.New("goth: no failed to fetch user") ErrNotAllowedOrg = errors.New("goth: user not in allowed org") ErrNoName = errors.New("goth: user has no display name set") )
View Source
var DefaultScopes = []string{"user:email", "read:user"}
DefaultScopes holds the default scopes used for GitHub.
Functions ¶
Types ¶
type Opt ¶ added in v1.2.13
type Opt func(*githubProvider)
Opt is a function that configures the GitHub provider.
func WithAllowedOrgs ¶ added in v1.2.13
WithAllowedOrgs sets the allowed organizations for the GitHub provider.
func WithEnterpriseURL ¶ added in v1.2.13
WithEnterpriseURL sets the enterprise URL for the GitHub provider.
func WithScopes ¶ added in v1.2.13
WithScopes sets the scopes for the GitHub provider.
Click to show internal directories.
Click to hide internal directories.