Must decode the code!
This commit is contained in:
parent
3acaac2d47
commit
bcd91851d2
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue