Skip to content
Snippets Groups Projects
Commit f8d937ec authored by Leonardo Christino's avatar Leonardo Christino
Browse files

fix(auth): send session id from client

parent de756cd1
No related branches found
No related tags found
No related merge requests found
Pipeline #127519 passed
......@@ -68,13 +68,13 @@ export const useAuth = () => {
init.credentials = 'include';
init.redirect = 'follow';
init.method = init.method || 'GET';
// init.headers = {
// 'Content-Type': 'application/json',
// Userid: auth.userID || '',
// Sessionid: auth.sessionID || '',
// Authorization: `Bearer ${auth.jwt}`,
// ...init.headers,
// };
init.headers = {
'Content-Type': 'application/json',
// Userid: auth.userID || '',
sessionid: auth.sessionID || '',
// Authorization: `Bearer ${auth.jwt}`,
...init.headers,
};
return fetch(input, init);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment