Versions in this module Expand all Collapse all v0 v0.0.2 Apr 8, 2026 Changes in this version + const KeyClaim + var ErrInvalidToken = errors.New("invalid token claims") + var ErrUnexpectedSigningToken = errors.New("unexpected token signing method") + func AlwaysAllowFunc() bool + type Config struct + Secret string + TimeoutInSeconds uint64 + type Interceptor struct + func NewAuthInterceptor(jwtManager *Manager, policyClient *policyclient.Client) *Interceptor + func (interceptor *Interceptor) Stream() grpc.StreamServerInterceptor + func (interceptor *Interceptor) Unary() grpc.UnaryServerInterceptor + type Manager struct + func NewJWTManager(config Config) *Manager + func (manager *Manager) Generate(ctx context.Context, user *user.User) (string, error) + func (manager *Manager) Verify(ctx context.Context, accessToken string) (*UserClaims, error) + type StreamClaimInjector struct + Claims *UserClaims + func (s StreamClaimInjector) Context() context.Context + type UserClaims struct + Role string + TeamID string + Username string