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

调用refreshToken会生成新的刷新令牌 #26

Open
daady-zh opened this issue Jan 8, 2025 · 4 comments
Open

调用refreshToken会生成新的刷新令牌 #26

daady-zh opened this issue Jan 8, 2025 · 4 comments

Comments

@daady-zh
Copy link

daady-zh commented Jan 8, 2025

大佬,当调用$accessToken = jwt::refreshToken();时会生成全新的刷新令牌和访问令牌,并且旧的刷新令牌和新的令牌都能用,这个正常吗?还是我的打开方式不对😂

@Tinywan
Copy link
Owner

Tinywan commented Jan 8, 2025

如果要废弃之前的。需要开启单点登录

@daady-zh
Copy link
Author

daady-zh commented Jan 9, 2025

如果要废弃之前的。需要开启单点登录

明白了感谢大佬

@daady-zh
Copy link
Author

daady-zh commented Jan 9, 2025

请问大佬代码第226行抛出请求未携带authorization信息是不是应该修改为“不允许get请求获取token”合适点?

@Tinywan
Copy link
Owner

Tinywan commented Jan 9, 2025

配置项可以开启允许GET携带令牌的

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