根据用户名和密码 jwt算法生成token,
当每次发送请求时,把token,time和sign发送给服务器
token
time
sign: token,time 加密生成,(是每次都是变的)
后端校验时间戳和签名的有效性,按照加密规则,验证签名是否符合规则,校验签名是否已经发送过了
根据用户名和密码 jwt算法生成token,
当每次发送请求时,把token,time和sign发送给服务器
token
time
sign: token,time 加密生成,(是每次都是变的)
后端校验时间戳和签名的有效性,按照加密规则,验证签名是否符合规则,校验签名是否已经发送过了