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

Function authorizeMiddleware

server/logic/auth.js:92–120  ·  view source on GitHub ↗

* 登录验证 * 验证通过 派发login Token * 验证失败 返回登录失败 * * ctx.state 鉴权结果 * 0: 鉴权成功 * 1: 鉴权失败-userSig格式不正确 * 2: 鉴权失败-sdkAppID/accountType/userID和userSig信息不一致 * 3: 鉴权失败-userSig票据过期 * 4: 鉴权失败-数字签名验证失败

(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

makeTokenFunction · 0.85
setLoginTokenFunction · 0.85

Tested by

no test coverage detected