chore(frontend): fixed all eslint errors

This commit is contained in:
akhilmhdh
2023-01-17 21:06:14 +05:30
parent 9f82e2d836
commit cf7834bfc3
184 changed files with 6255 additions and 6117 deletions
+5 -6
View File
@@ -1,17 +1,16 @@
const token = async () => {
return fetch('/api/v1/auth/token', {
const token = async () =>
fetch('/api/v1/auth/token', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
credentials: 'include'
}).then(async (res) => {
if (res.status == 200) {
if (res.status === 200) {
return (await res.json()).token;
} else {
console.log('Getting a new token failed');
}
console.log('Getting a new token failed');
return undefined;
});
};
export default token;