MCPcopy Index your code
hub / github.com/bytebase/bytebase / audienceContains

Function audienceContains

backend/api/auth/auth.go:361–363  ·  view source on GitHub ↗
(audience jwt.ClaimStrings, token string)

Source from the content-addressed store, hash-verified

359}
360
361func audienceContains(audience jwt.ClaimStrings, token string) bool {
362 return slices.Contains(audience, token)
363}
364
365func getAuthContext(fullMethod string) (*common.AuthContext, error) {
366 methodTokens := strings.Split(fullMethod, "/")

Callers 2

authenticateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected