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

Function wrap_actions_logout

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

Source from the content-addressed store, hash-verified

32184 }
32185 },
32186 wrap_actions_logout = (s, o) => (i) => {
32187 const a = o.getConfigs(),
32188 u = o.authSelectors.authorized()
32189 try {
32190 a.persistAuthorization &&
32191 Array.isArray(i) &&
32192 i.forEach((s) => {
32193 const o = u.get(s, {}),
32194 i = 'apiKey' === o.getIn(['schema', 'type']),
32195 a = 'cookie' === o.getIn(['schema', 'in'])
32196 if (i && a) {
32197 const s = o.getIn(['schema', 'name'])
32198 document.cookie = `${s}=; Max-Age=-99999999`
32199 }
32200 })
32201 } catch (s) {
32202 console.error('Error deleting cookie based apiKey from document.cookie.', s)
32203 }
32204 s(i)
32205 }
32206 var Kt = __webpack_require__(90179),
32207 Gt = __webpack_require__.n(Kt)
32208 class LockAuthIcon extends Re.Component {

Callers

nothing calls this directly

Calls 6

getConfigsMethod · 0.80
errorMethod · 0.80
getMethod · 0.65
sFunction · 0.50
isArrayMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected