Versions in this module Expand all Collapse all v2 v2.19.2 Oct 22, 2026 v2.19.1 Oct 20, 2026 Changes in this version + const DefaultTTL + const PlaceholderAPIKey + const PlaceholderAPISecret + func CheckGrants(token string, want *auth.ClaimGrants) error + func ConnectToRoom(ctx context.Context, src *CachingTokenSource, url string, ...) (*lksdk.Room, error) + func IsPlaceholder(apiKey string) bool + func JoinRoom(ctx context.Context, room *lksdk.Room, src *CachingTokenSource, url string, ...) error + func ParticipantGrants(info lksdk.ConnectInfo) *auth.ClaimGrants + func Sign(ctx context.Context, src *CachingTokenSource, apiKey, apiSecret string, ...) (string, error) + type CachingTokenSource struct + func NewCachingTokenSource(source TokenSource) *CachingTokenSource + func (s *CachingTokenSource) ClientOptions() []twirp.ClientOption + func (s *CachingTokenSource) Exchange(ctx context.Context, placeholderToken string, ttl time.Duration) (string, error) + func (s *CachingTokenSource) Fetch(ctx context.Context, grants *auth.ClaimGrants, ttl time.Duration) (string, time.Time, error) + func (s *CachingTokenSource) Transport(base http.RoundTripper) http.RoundTripper + type TokenSource interface + Fetch func(ctx context.Context, grants *auth.ClaimGrants, ttl time.Duration) (token string, expiresAt time.Time, err error)