Project

General

Profile

Actions

Feature #212

open

[BE] HTTP 403 và 401

Added by Lê An 10 months ago. Updated 10 months ago.

Status:
Resolved - Dev
Priority:
Normal
Assignee:
Category:
BE
Target version:
Start date:
11/22/2023
Due date:
11/24/2023 (about 10 months late)
% Done:

0%

Estimated time:
2:00 h
Spent time:

Description

Bối cảnh

khi token hết hạn hoặc user cố tình truy cập vào data ko phải của mình thì đều nhận mã lỗi 403.
FE không thể phân biệt cái nào là hết hạn bằng status code

Yêu cần

403: Khi không có quyền
401: khi thiếu thông tin auth

Actions

Also available in: Atom PDF