Skip to content

mysql建表字段中的expires_in和create_at字段设置为varchar导致过期自动刷新token功能判断异常 #58

@yellowdoge1996

Description

@yellowdoge1996

oauth.js26行的判断代码如下:

return !!this.data.access_token && (new Date().getTime()) < (this.data.create_at + this.data.expires_in * 1000);

(this.data.create_at + this.data.expires_in * 1000)这个代码在字符和数字时表现出来的结果是不一样的。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions