MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / ToPattern

Method ToPattern

gateway/apinto/auth/jwt.go:19–23  ·  view source on GitHub ↗
(cfg map[string]interface{})

Source from the content-addressed store, hash-verified

17}
18
19func (J *JWT) ToPattern(cfg map[string]interface{}) interface{} {
20 result := make(map[string]interface{})
21 result["username"] = cfg["user"]
22 return result
23}
24
25func (J *JWT) ToConfig(cfg map[string]interface{}) interface{} {
26 result := make(map[string]interface{})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected