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

Function wrap_actions_authorize

frontend/public/swagger-ui-bundle.js:32173–32185  ·  view source on GitHub ↗
(s, o)

Source from the content-addressed store, hash-verified

32171 }
32172 },
32173 wrap_actions_authorize = (s, o) => (i) => {
32174 s(i)
32175 if (o.getConfigs().persistAuthorization)
32176 try {
32177 const [{ schema: s, value: o }] = Object.values(i),
32178 a = (0, ze.fromJS)(s),
32179 u = 'apiKey' === a.get('type'),
32180 _ = 'cookie' === a.get('in')
32181 u && _ && (document.cookie = `${a.get('name')}=${o}; SameSite=None; Secure`)
32182 } catch (s) {
32183 console.error('Error persisting cookie based apiKey in document.cookie.', s)
32184 }
32185 },
32186 wrap_actions_logout = (s, o) => (i) => {
32187 const a = o.getConfigs(),
32188 u = o.authSelectors.authorized()

Callers

nothing calls this directly

Calls 5

getConfigsMethod · 0.80
errorMethod · 0.80
getMethod · 0.65
sFunction · 0.50
valuesMethod · 0.45

Tested by

no test coverage detected