MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / authMetadataString

Function authMetadataString

sdk/cliproxy/auth/classification.go:128–138  ·  view source on GitHub ↗
(auth *Auth, key string)

Source from the content-addressed store, hash-verified

126}
127
128func authMetadataString(auth *Auth, key string) string {
129 if auth == nil || auth.Metadata == nil {
130 return ""
131 }
132 switch value := auth.Metadata[key].(type) {
133 case string:
134 return strings.TrimSpace(value)
135 default:
136 return ""
137 }
138}

Callers 2

AuthKindMethod · 0.85
authHasOAuthMetadataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected