From 40921f20bcdf92ab847f02c3e07a27fb66006b97 Mon Sep 17 00:00:00 2001 From: Sameer Kolhar Date: Fri, 31 Mar 2023 14:49:02 +0530 Subject: [PATCH] console: fix issue to clear admin secret key on logout PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8503 GitOrigin-RevId: 7f94a2da01001b1b295151aa41c2e456c120f972 --- .../libs/console/legacy-ee/src/lib/components/Main/Actions.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/libs/console/legacy-ee/src/lib/components/Main/Actions.js b/frontend/libs/console/legacy-ee/src/lib/components/Main/Actions.js index b9318b5040a..fec1577f3e8 100644 --- a/frontend/libs/console/legacy-ee/src/lib/components/Main/Actions.js +++ b/frontend/libs/console/legacy-ee/src/lib/components/Main/Actions.js @@ -13,6 +13,7 @@ import { } from '../AppState'; import { ADMIN_SECRET_ERROR, + clearAdminSecretState, UPDATE_DATA_HEADERS, } from '@hasura/console-legacy-ce'; import { getFeaturesCompatibility } from '../../helpers/versionUtils'; @@ -425,6 +426,7 @@ const clearCollaboratorSignInState = () => { removeHeaderFromLS(globals.collabLabel); removeHeaderFromLS(globals.patLabel); clearPATState(); + clearAdminSecretState(); initLS(); dispatch(push(`${globals.urlPrefix}/login`)); })