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 { useEffect } from 'react';
import { getAuthToken } from 'util/saved-passwords';
import { X_LBRY_AUTH_TOKEN } from 'constants/token';
// import { getAuthToken } from 'util/saved-passwords';
// import { X_LBRY_AUTH_TOKEN } from 'constants/token';
import fetchWithTimeout from 'util/fetch';
@ -13,10 +13,10 @@ export const STATUS_DOWN = 'down';
const getParams = () => {
const headers = {};
const token = getAuthToken();
if (token) {
headers[X_LBRY_AUTH_TOKEN] = token;
}
// const token = getAuthToken();
// if (token) {
// headers[X_LBRY_AUTH_TOKEN] = token;
// }
const params = { headers };
return params;
};