From e91da1c9a36ffaaccd695387b657b5e055506f9c Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Tue, 22 Oct 2019 21:25:47 +0000 Subject: [PATCH] fix: check if auth params exist in hash before clearing it (#2666) --- src/core/client/admin/local/initLocalState.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/client/admin/local/initLocalState.ts b/src/core/client/admin/local/initLocalState.ts index 59f6e175c..8401c6a9e 100644 --- a/src/core/client/admin/local/initLocalState.ts +++ b/src/core/client/admin/local/initLocalState.ts @@ -22,7 +22,7 @@ export default async function initLocalState( // Get all the parameters from the hash. const params = getParamsFromHash(); - if (params) { + if (params && (params.accessToken || params.error)) { // If there were params in the hash, then clear them! clearHash();