This commit is contained in:
2025-04-01 10:22:03 +08:00
parent 466ac1bcf0
commit 230bc6cd5d
2 changed files with 2 additions and 1 deletions

View File

@@ -46,7 +46,7 @@ export const getLoginUser = async (req: http.IncomingMessage) => {
if (!token) {
const parsedCookies = cookie.parse(req.headers.cookie || '');
token = parsedCookies.token || '';
}
}
if (token) {
token = token.replace('Bearer ', '');