MCPcopy Index your code
hub / github.com/dataease/SQLBot / preauthorizeBasic

Function preauthorizeBasic

frontend/public/swagger-ui-bundle.js:32256–32264  ·  view source on GitHub ↗
(s, o, i, a)

Source from the content-addressed store, hash-verified

32254 }
32255 }
32256 function preauthorizeBasic(s, o, i, a) {
32257 const {
32258 authActions: { authorize: u },
32259 specSelectors: { specJson: _, isOAS3: w },
32260 } = s,
32261 x = w() ? ['components', 'securitySchemes'] : ['securityDefinitions'],
32262 C = _().getIn([...x, o])
32263 return C ? u({ [o]: { value: { username: i, password: a }, schema: C.toJS() } }) : null
32264 }
32265 function preauthorizeApiKey(s, o, i) {
32266 const {
32267 authActions: { authorize: a },

Callers

nothing calls this directly

Calls 3

wFunction · 0.70
_Function · 0.70
uFunction · 0.70

Tested by

no test coverage detected