Versions in this module Expand all Collapse all v0 v0.0.1 Apr 2, 2024 Changes in this version + type CallbackParams struct + Code string + Err string + ErrDesc string + State string + type Credentials struct + BaseURL string + ClientID string + ClientSecret string + type Provider interface + Callback func(echo.Context) error + Login func(echo.Context) error + func NewGithubProvider(db *sqlc.Queries, fs fs.Storage, c Credentials) Provider + func NewGoogleProvider(db *sqlc.Queries, fs fs.Storage, c Credentials) (Provider, error) + type ProviderGithub struct + func (p ProviderGithub) Callback(c echo.Context) error + func (p ProviderGithub) InsertUser(ctx context.Context, u *githubUser) (string, error) + func (p ProviderGithub) Login(c echo.Context) error + type ProviderGoogle struct + func (p ProviderGoogle) Callback(c echo.Context) error + func (p ProviderGoogle) InsertUser(ctx context.Context, u *googleUser) (string, error) + func (p ProviderGoogle) Login(c echo.Context) error + type TokenSource struct + func (s TokenSource) Token() (*oauth2.Token, error)