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

Function callRequestAuthCode

frontend/src/views/login/xpack/PlatformClient.ts:109–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

107 }
108 const clientId = res.client_id
109 const callRequestAuthCode = () => {
110 window['tt'].requestAuthCode({
111 appId: clientId,
112 success: (res: any) => {
113 const { code } = res
114 const state = `fit2cloud-lark-client`
115 toUrl(`?code=${code}&state=${state}`)
116 },
117 fail: (error: any) => {
118 const { errno, errString } = error
119 ElMessage.error(`error code: ${errno}, error msg: ${errString}`)
120 },
121 })
122 }
123 if (window['tt'].requestAccess) {
124 window['tt'].requestAccess({
125 appID: clientId,

Callers 1

larkClientRequestFunction · 0.85

Calls 2

toUrlFunction · 0.85
errorMethod · 0.80

Tested by

no test coverage detected