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

Function wecomCallback

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

Source from the content-addressed store, hash-verified

49 })
50 },
51 async wecomCallback(code: string) {
52 return LoginApi.getWecomCallback(code).then((ok) => {
53 this.token = ok?.data?.token
54 localStorage.setItem('token', ok?.data?.token)
55 const user = useUserStore()
56 return user.profile()
57 })
58 },
59 async larkCallback(code: string) {
60 return LoginApi.getLarkCallback(code).then((ok) => {
61 this.token = ok?.data?.token

Callers

nothing calls this directly

Calls 1

profileMethod · 0.45

Tested by

no test coverage detected