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:
Thomas Zarebczan 2020-11-14 02:22:19 -05:00
parent 07916059ed
commit 24542aa10a
No known key found for this signature in database
GPG key ID: D505010BDB4364BC

View file

@ -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;
}; };