Versions in this module Expand all Collapse all v0 v0.0.1 Feb 4, 2024 Changes in this version + const NoAuthUrlErrorMessage + func ClearProviders() + func ContextForClient(h *http.Client) context.Context + func HTTPClientWithFallBack(h *http.Client) *http.Client + func UseProviders(viders ...Provider) + type Params interface + Get func(string) string + type Provider interface + BeginAuth func(state string) (Session, error) + Debug func(bool) + FetchUser func(Session) (User, error) + Name func() string + RefreshToken func(refreshToken string) (*oauth2.Token, error) + RefreshTokenAvailable func() bool + SetName func(name string) + UnmarshalSession func(string) (Session, error) + func GetProvider(name string) (Provider, error) + type Providers map[string]Provider + func GetProviders() Providers + type Session interface + Authorize func(Provider, Params) (string, error) + GetAuthURL func() (string, error) + Marshal func() string + type User struct + AccessToken string + AccessTokenSecret string + AvatarURL string + Description string + Email string + ExpiresAt time.Time + FirstName string + IDToken string + LastName string + Location string + Name string + NickName string + Provider string + RawData map[string]interface{} + RefreshToken string + UserID string