[!] cloudos auth bug

This commit is contained in:
王昆 2021-11-12 14:21:35 +08:00
parent 22fd7467a0
commit bd3a342c92
1 changed files with 4 additions and 0 deletions

View File

@ -51,9 +51,12 @@ import localStorage from "utils/localStorage";
import { Toaster } from "components/ads/Toast";
import { Variant } from "components/ads/common";
import log from "loglevel";
import { getAppsmithConfigs } from "configs";
import { getCurrentUser } from "selectors/usersSelectors";
const { inCloudOS } = getAppsmithConfigs();
export function* createUserSaga(
action: ReduxActionWithPromise<CreateUserRequest>,
) {
@ -106,6 +109,7 @@ export function* getCurrentUserSaga() {
response.data.username !== ANONYMOUS_USERNAME
) {
if (
inCloudOS &&
!response.data.cloudOSLogged &&
matchBuilderPath(window.location.pathname)
) {