MCPcopy
hub / github.com/1Panel-dev/MaxKB / dingOauth2Callback

Function dingOauth2Callback

ui/src/stores/modules/login.ts:43–50  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

41 })
42 },
43 async dingOauth2Callback(code: string) {
44 return LoginApi.getDingOauth2Callback(code).then((ok) => {
45 this.token = ok?.data?.token
46 localStorage.setItem('token', ok?.data?.token)
47 const user = useUserStore()
48 return user.profile()
49 })
50 },
51 async wecomCallback(code: string) {
52 return LoginApi.getWecomCallback(code).then((ok) => {
53 this.token = ok?.data?.token

Callers

nothing calls this directly

Calls 1

profileMethod · 0.45

Tested by

no test coverage detected