Versions in this module Expand all Collapse all v0 v0.5.1 Oct 4, 2026 v0.5.0 Oct 4, 2026 Changes in this version type Principal + StopOnly bool v0.4.0 Sep 17, 2026 Changes in this version + const TokenPrefix + func Mint(ctx context.Context, db DB, workID, sessionID string) (string, error) + func Secret(token string) string + type DB interface + Exec func(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error) + type Principal struct + EnvironmentID string + SessionID string + WorkID string + func Authenticate(ctx context.Context, pool *pgxpool.Pool, token string) (Principal, error)