Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
yellowdoge1996 opened this issue Aug 21, 2022 · 0 comments

Comments

@yellowdoge1996
Copy link

yellowdoge1996 commented Aug 21, 2022

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)这个代码在字符和数字时表现出来的结果是不一样的。

@yellowdoge1996 yellowdoge1996 changed the title mysql建表字段设置为varchar导致过期自动刷新token mysql建表字段中的expires_in和create_at字段设置为varchar导致过期自动刷新token功能判断异常 Aug 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant