Versions in this module Expand all Collapse all v0 v0.7.0 Jan 2, 2022 v0.6.0 Jan 2, 2022 Changes in this version + type APIError struct + Code int + Error string + func (a APIError) IsZero() bool + type Mailgun struct + Client *mailgun.MailgunImpl + From string + HTMLTmpl *htmltmpl.Template + PlainTextTmpl *texttmpl.Template + Subject string + func (m Mailgun) SendMail(ctx context.Context, email, code string) error + type Service struct + Accounts accounts.Dependencies + Clients clients.Storer + Emailer emailer + GoogleClients []string + GoogleIDVerifier *oidc.IDTokenVerifier + Grants grants.Dependencies + Log *yall.Logger + Refresh tokens.Dependencies + Scopes scopes.Dependencies + Sessions sessions.Dependencies + TokenExpiresIn int + func (s Service) IssueAccessToken(ctx context.Context, grant grants.Grant) (string, error) + func (s Service) IssueRefreshToken(ctx context.Context, grant grants.Grant) (string, error) + func (s Service) Server(prefix string) http.Handler + func (s Service) UseRefreshToken(ctx context.Context, tokenID string) error + func (s Service) ValidateRefreshToken(ctx context.Context, token, client string) (tokens.RefreshToken, error) + type Token struct + AccessToken string + ExpiresIn int + RefreshToken string + Scope string + TokenType string