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

code-push login --accessKey <accessKey> 登录的accessKey时间无限长 #369

Open
fish2018 opened this issue Apr 18, 2023 · 1 comment

Comments

@fish2018
Copy link

accessKey时间如何设置成永久的?现在每隔一段时间就要手动轮换一次

@pobinglang
Copy link

accessKey时间如何设置成永久的?现在每隔一段时间就要手动轮换一次

可以修改数据库里面user_tokens表中对应的expires_at时间来实现accessKey时间无限长。另外,因为expires_at在mysql数据库中是timestamp类型,它在低版本中可设置最大年限是 '2038-1-19 11:14:07',解决办法是将timestamp改为datetime类型。

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

2 participants