temp
This commit is contained in:
@@ -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 ', '');
|
||||
|
||||
Reference in New Issue
Block a user