diff --git a/src/renderer/index.js b/src/renderer/index.js index 15c33b8a8..5768763db 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -20,7 +20,7 @@ import { import { doToast, doBlackListedOutpointsSubscribe, isURIValid } from 'lbry-redux'; import { doNavigate } from 'redux/actions/navigation'; import { doDownloadLanguages, doUpdateIsNightAsync } from 'redux/actions/settings'; -import { doUserEmailVerify, doAuthenticate, Lbryio, rewards } from 'lbryinc'; +import { doAuthenticate, Lbryio, rewards } from 'lbryinc'; import 'scss/all.scss'; import store from 'store'; import pjson from 'package.json'; @@ -99,23 +99,8 @@ rewards.setCallback('claimRewardSuccess', () => { ipcRenderer.on('open-uri-requested', (event, uri, newSession) => { if (uri && uri.startsWith('lbry://')) { - if (uri.startsWith('lbry://?verify=')) { - let verification = {}; - try { - verification = JSON.parse(atob(uri.substring(15))); - } catch (error) { - console.log(error); - } - if (verification.token && verification.recaptcha) { - app.store.dispatch(doConditionalAuthNavigate(newSession)); - app.store.dispatch(doUserEmailVerify(verification.token, verification.recaptcha)); - } else { - app.store.dispatch( - doToast({ - message: 'Invalid Verification URI', - }) - ); - } + if (uri.startsWith('lbry://?verify')) { + app.store.dispatch(doConditionalAuthNavigate(newSession)); } else if (uri.startsWith(APPPAGEURL)) { const navpage = uri.replace(APPPAGEURL, '').toLowerCase(); app.store.dispatch(doNavigate(`/${navpage}`));