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

token expire 時要回傳 401, 不是偷偷變成 guest #507

Open
chhsiao1981 opened this issue Oct 11, 2023 · 0 comments
Open

token expire 時要回傳 401, 不是偷偷變成 guest #507

chhsiao1981 opened this issue Oct 11, 2023 · 0 comments

Comments

@chhsiao1981
Copy link
Collaborator

Describe the bug

現在機制是 token expire 時會偷偷變成 guest~
但是如此會導致 user / frontend 的設定 (原本的 user)
和 backend (guest) 不一樣~

需要改成直接 return 401~

To Reproduce

Expected behavior

Screenshots

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

https://github.com/Ptt-official-app/go-openbbsmiddleware/blob/main/api/api_login_required.go#L44

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