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

feat(auth): revert authentication temporarily

parent 5e38b361
No related branches found
No related tags found
No related merge requests found
Pipeline #127503 failed
...@@ -68,14 +68,13 @@ export const useAuth = () => { ...@@ -68,14 +68,13 @@ export const useAuth = () => {
init.credentials = 'include'; init.credentials = 'include';
init.redirect = 'follow'; init.redirect = 'follow';
init.method = init.method || 'GET'; init.method = init.method || 'GET';
init.headers = { // init.headers = {
'Content-Type': 'application/json', // 'Content-Type': 'application/json',
Userid: auth.userID || '', // Userid: auth.userID || '',
// Userid: 'asdasd', // Sessionid: auth.sessionID || '',
Sessionid: auth.sessionID || '', // Authorization: `Bearer ${auth.jwt}`,
Authorization: `Bearer ${auth.jwt}`, // ...init.headers,
...init.headers, // };
};
return fetch(input, init); 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