MCPcopy Create free account
hub / github.com/devfeel/longweb / CheckAuthToken

Function CheckAuthToken

message/auth.go:31–78  ·  view source on GitHub ↗

*检查应用鉴权结果 Author: panxinming CreateTime: 2017-02-07 13:00 入参: app:应用配置信息 appId:应用编号 groupid:用户组编号,应用自定义 userid:用户编号,应用需保证userid在同Appid下的唯一性 token:鉴权token 返回值: 0 成功 -101001:no permission connect! => appid[" + appId + "] no exists -101002:no permission connect! => check token has an error => [http-req

(app *config.AppInfo, appId, groupId, groupIds, userId, token string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

OnPollingFunction · 0.85
OnWebSocketFunction · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected