MCPcopy Create free account
hub / github.com/PostHog/duckgres / stringClaim

Function stringClaim

controlplane/admin/authz.go:241–246  ·  view source on GitHub ↗
(claims map[string]any, key string)

Source from the content-addressed store, hash-verified

239var errMalformedJWT = &jwtError{"malformed JWT"}
240
241type jwtError struct{ msg string }
242
243func (e *jwtError) Error() string { return e.msg }
244
245func stringClaim(claims map[string]any, key string) string {
246 if v, ok := claims[key].(string); ok {
247 return v
248 }
249 return ""

Callers 1

emailFromOIDCFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected