Versions in this module Expand all Collapse all v0 v0.1.1 Jun 25, 2026 v0.1.0 Jun 25, 2026 Changes in this version + type Client struct + Grants []string + ID string + Name string + RedirectURIs []string + Scopes []string + SecretHash string + type Introspection struct + Active bool + ClientID string + Exp int64 + Scope string + Sub string + TokenType string + type Server struct + func FromKernel(k *togo.Kernel) (*Server, bool) + func New() *Server + func (s *Server) Client(id string) (*Client, bool) + func (s *Server) ClientCredentials(clientID, clientSecret, scope string) (*Tokens, error) + func (s *Server) ExchangeCode(code, verifier, redirectURI, clientID, clientSecret string) (*Tokens, error) + func (s *Server) Introspect(token string) Introspection + func (s *Server) IssueCode(clientID, userID, scope, redirectURI, challenge, method string) (string, error) + func (s *Server) RefreshExchange(refreshTok, clientID, clientSecret string) (*Tokens, error) + func (s *Server) RegisterClient(name string, redirectURIs, scopes, grants []string, confidential bool) (*Client, string) + func (s *Server) Revoke(token string) + type Tokens struct + AccessToken string + ExpiresIn int + RefreshToken string + Scope string + TokenType string