Revert "app uses auth token header"

This commit is contained in:
Sean Yesmunt 2019-06-06 17:44:24 -04:00 committed by GitHub
parent 08cd5a0c5b
commit b75732f19c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 6 deletions

View file

@ -119,7 +119,7 @@
"jsmediatags": "^3.8.1",
"json-loader": "^0.5.4",
"lbry-format": "https://github.com/lbryio/lbry-format.git",
"lbry-redux": "lbryio/lbry-redux#ed94218cdb3409b963aec136ffe3c11c9e3bc875",
"lbry-redux": "lbryio/lbry-redux#02f6918238110726c0b3b4248c61a84ac0b969e3",
"lbryinc": "lbryio/lbryinc#43d382d9b74d396a581a74d87e4c53105e04f845",
"lint-staged": "^7.0.2",
"localforage": "^1.7.1",

View file

@ -89,7 +89,6 @@ Lbryio.setOverride(
() =>
new Promise(resolve => {
if (authToken) {
Lbry.setApiHeader('X-Lbry-Auth-Token', authToken);
resolve(authToken);
} else {
// @if TARGET='app'
@ -102,10 +101,6 @@ Lbryio.setOverride(
// @endif
// @if TARGET='web'
const { auth_token: authToken } = cookie.parse(document.cookie);
if (authToken) {
Lbry.setApiHeader('X-Lbry-Auth-Token', authToken);
}
resolve(authToken);
// @endif
}