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

Function getTokenKey

frontend/public/swagger-ui-bundle.js:56486–56491  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56484 const a = o.getConfigs().withCredentials
56485 o.fn.fetch.withCredentials = a
56486 })
56487 function getTokenKey() {
56488 var pathname = window.location.pathname.replace('docs', '')
56489 var match = pathname.match(/^\/([^\/]+)/)
56490 var prefix = match ? `${match[1]}_` : 'sqlbot_v1_'
56491 return `${prefix}user.token`
56492 }
56493 function get_token() {
56494 var token_key = getTokenKey()

Callers 1

get_tokenFunction · 0.85

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected