diff --git a/src/app.jsx b/src/app.jsx index 63357bff..0d303bbb 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -91,7 +91,9 @@ function App() { useEffect(() => { const instanceURL = store.local.get('instanceURL'); - const code = (window.location.search.match(/code=([^&]+)/) || [])[1]; + const code = decodeURIComponent( + (window.location.search.match(/code=([^&]+)/) || [, ''])[1], + ); if (code) { console.log({ code });