作者 yangfu

测试过期

... ... @@ -115,7 +115,7 @@ func RefreshToken(request *protocol.RefreshTokenRequest) (rsp *protocol.RefreshT
)
rsp = &protocol.RefreshTokenResponse{}
if claim, err = utils.ParseJWTToken(request.RefreshToken); err != nil {
err = protocol.NewErrWithMessage(4139, err)
err = protocol.NewErrWithMessage(4140, err)
return
}
if claim.UserId <= 0 {
... ...
... ... @@ -6,8 +6,12 @@ const (
)
const AuthCodeExpire = 60 * 15
const TokenExpire = 60 * 60 * 2
const RefreshTokenExipre = 3600 * 24 * 30 * 3 //刷新token 三个月过期
//const TokenExpire = 60 * 60 * 2
//const RefreshTokenExipre = 3600 * 24 * 30 * 1 //刷新token 一个月过期
const TokenExpire = 30
const RefreshTokenExipre = 60 //刷新token
/*Login */
type LoginRequest struct {
... ...