From 24542aa10ae419c7bf9399c2eb5c477b4d0cf2f5 Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Sat, 14 Nov 2020 02:22:19 -0500 Subject: [PATCH] Temp: don't send auth token with status call This should be changed to only send if email verified (I tried and failed lol) --- web/effects/use-degraded-performance.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/web/effects/use-degraded-performance.js b/web/effects/use-degraded-performance.js index e75d4f2f2..5ab00da61 100644 --- a/web/effects/use-degraded-performance.js +++ b/web/effects/use-degraded-performance.js @@ -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; };