Versions in this module Expand all Collapse all v0 v0.1.1 Aug 24, 2023 v0.1.0 Aug 23, 2023 Changes in this version + const HMAC256Algorithm + type JWTSettings struct + Algorithm signingAlgorithm + Issuer string + Lifespan int + SigningKey string + type Service struct + Repo store.Repository + func (s Service) IntrospectToken(ctx context.Context, token string) (TokenInfo, error) + func (s Service) Login(ctx context.Context, username, password string) (Token, error) + func (s Service) Logout(ctx context.Context, token string) error + func (s Service) ValidateAPIKey(ctx context.Context, key string) error + type Token struct + AccessToken string + Lifespan int + type TokenInfo struct + Active bool + ExpiresAt int + UserID string + Username string