Temp: don't send auth token with status call
This should be changed to only send if email verified (I tried and failed lol)
This commit is contained in:
parent
07916059ed
commit
24542aa10a
1 changed files with 6 additions and 6 deletions
|
@ -1,7 +1,7 @@
|
||||||
import { SDK_API_PATH } from 'ui';
|
import { SDK_API_PATH } from 'ui';
|
||||||
import { useEffect } from 'react';
|
import { useEffect } from 'react';
|
||||||
import { getAuthToken } from 'util/saved-passwords';
|
// import { getAuthToken } from 'util/saved-passwords';
|
||||||
import { X_LBRY_AUTH_TOKEN } from 'constants/token';
|
// import { X_LBRY_AUTH_TOKEN } from 'constants/token';
|
||||||
|
|
||||||
import fetchWithTimeout from 'util/fetch';
|
import fetchWithTimeout from 'util/fetch';
|
||||||
|
|
||||||
|
@ -13,10 +13,10 @@ export const STATUS_DOWN = 'down';
|
||||||
|
|
||||||
const getParams = () => {
|
const getParams = () => {
|
||||||
const headers = {};
|
const headers = {};
|
||||||
const token = getAuthToken();
|
// const token = getAuthToken();
|
||||||
if (token) {
|
// if (token) {
|
||||||
headers[X_LBRY_AUTH_TOKEN] = token;
|
// headers[X_LBRY_AUTH_TOKEN] = token;
|
||||||
}
|
// }
|
||||||
const params = { headers };
|
const params = { headers };
|
||||||
return params;
|
return params;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue