MCPcopy Create free account
hub / github.com/TencentVideoCloudMLVBDev/MiniProgram / validationMiddleware

Function validationMiddleware

server/logic/auth.js:131–162  ·  view source on GitHub ↗

* ctx.state 鉴权结果 * 0: 鉴权成功 * 1: 鉴权失败-Token不一致 * 2: 鉴权失败-Token格式异常 * 3: 鉴权失败-用户未登录 * 4: 鉴权失败-参数不全 * 5: 鉴权失败-用户账号不存在

(ctx, next)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

fromTokenFunction · 0.85
getLoginTokenFunction · 0.85

Tested by

no test coverage detected