Skip to content

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

@chhsiao1981

Description

@chhsiao1981

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

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