Skip to content

测试刷新 token 接口,携带合法 token 访问接口,过滤器可以成功解析 token 中的用户名,但是接口持续返回 401 提示 “暂未登录或 token 已过期” #989

Description

@yx0086

JWT里面exp,单位:秒(10位数字) System.currentTimeMillis()返回毫秒(13位数字)数值相差 1000 倍,
expTime < System.currentTimeMillis() →永远true!直接判定过期!同时getExpiredDateFromToken()构造 Date 对象时,没有将秒乘以 1000 转换为毫秒。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions