- updated auth logic;

This commit is contained in:
Vitalii Kiiko
2025-05-20 16:29:07 +02:00
parent de0c480458
commit b2bc8d1fc9
3 changed files with 10 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
import { storeGet, storeSet } from '../store';
import logMsgWithSentry from '../helpers/logMsgWithSentry';
import { isEmpty } from 'ramda';
export class NetworkService {
@@ -257,6 +258,10 @@ export class NetworkService {
url = url.substring(0, url.length - 1);
}
if (url.includes('user/me') && isEmpty(storeGet('getToken'))) {
return;
}
fetch(url, {
method: 'GET',
mode: 'cors',