diff --git a/index.js b/index.js index abc073d..b3d2e4a 100644 --- a/index.js +++ b/index.js @@ -127,6 +127,8 @@ async function checkAuthFlow() { return; } + window.history.replaceState(null, '', window.location.pathname); + const authRequestJson = localStorage.getItem(state); localStorage.removeItem(state); @@ -152,10 +154,6 @@ async function checkAuthFlow() { const json = await res.json(); - console.log(json); - - window.history.replaceState(null, '', window.location.pathname); - return new Client({ token: json.access_token, permissions: json.permissions,