downgrade sdk and fix typo

This commit is contained in:
Sean Yesmunt 2020-01-21 14:59:05 -05:00
parent c321db4cab
commit 27751c5e42
2 changed files with 10 additions and 6 deletions

View file

@ -206,7 +206,7 @@
"yarn": "^1.3"
},
"lbrySettings": {
"lbrynetDaemonVersion": "0.53.3",
"lbrynetDaemonVersion": "0.50.1",
"lbrynetDaemonUrlTemplate": "https://github.com/lbryio/lbry/releases/download/vDAEMONVER/lbrynet-OSNAME.zip",
"lbrynetDaemonDir": "static/daemon",
"lbrynetDaemonFileName": "lbrynet"

View file

@ -127,11 +127,15 @@ Lbryio.setOverride(
// Old users who haven't moved to storing the auth_token in a cookie
// Get it => set it => delete from keychain
ipcRenderer.once('auth-token-response', (event, keychainToken) => {
Lbryio.authToken = keychainToken;
setAuthToken(keychainToken);
resolve(keychainToken);
ipcRenderer.send('delete-auth-token');
if (keychainToken) {
Lbryio.authToken = keychainToken;
setAuthToken(keychainToken);
resolve(keychainToken);
ipcRenderer.send('delete-auth-token');
} else {
// No auth_token saved anywhere
resolve('');
}
});
ipcRenderer.send('get-auth-token');