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