Get desktop application:
View/edit binary Protocol Buffers messages
AddBlocked add a uid to block list if is_block is true, will block the uid for duration seconds 添加到黑名单
true: block, false: unblock
block duration(Seconds) (if is_block is true)
(message has no fields)
Authenticate request a jwt token by id return a jwt token and a refresh token 请求一个 jwt token,用于身份认证
account id
if is_override is true means already has an active token it is suitable for different device login logic 如果is_override为true表示已经有一个活跃的token 适用于不同设备登录逻辑
ClearToken clear the uid's token 清除uid对应的token
(message has no fields)
Delete delete the id and uid info from db 删除id对应的uid信息
(message has no fields)
PacketToken pack some custom data to a jwt token, suitable for game room auth 将一些自定义数据打包到jwt token中,适用于游戏房间验证
user id or room id etc.(optional)
custom data will be packed to token (optional)
token duration(minute),default: 60 minutes (optional)
RefreshToken request a new jwt token by refresh token return a jwt token and a refresh token 刷新jwt token 过期时间
ValidateToken validate a jwt token return a uid and data 验证jwt token是否合法
custom data from token