@antscorp/antsomi-ui 1.3.7-beta.51 → 1.3.7-beta.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -315,8 +315,7 @@ export const AccountSharing = props => {
|
|
|
315
315
|
};
|
|
316
316
|
// const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
|
317
317
|
const onClickButtonLogout = useCallback(() => {
|
|
318
|
-
const
|
|
319
|
-
const addEnvKey = key => (cdpEnv ? `${key}_${cdpEnv}` : key);
|
|
318
|
+
const addEnvKey = key => (env ? `${key}_${env}` : key);
|
|
320
319
|
// Handle remove cookie and redirect to login
|
|
321
320
|
removeAppCookieSessionSubdomainPrefix({ name: UOGS_PREFIX, env });
|
|
322
321
|
removeAppCookieSessionSubdomain({ name: 'c_pid', env });
|
package/es/utils/cookie.js
CHANGED
|
@@ -27,8 +27,7 @@ export const removeCookieSubDomain = ({ name, env = 'development', cookieOptions
|
|
|
27
27
|
secure: true,
|
|
28
28
|
...cookieOptions,
|
|
29
29
|
});
|
|
30
|
-
const
|
|
31
|
-
const addEnvKey = key => (cdpEnv ? `${key}_${cdpEnv}` : key);
|
|
30
|
+
const addEnvKey = key => (env ? `${key}_${env}` : key);
|
|
32
31
|
// Remove redundant cookies setted for full domain
|
|
33
32
|
if (['api_token', addEnvKey('api_r_token'), addEnvKey('api_pid')].includes(name)) {
|
|
34
33
|
cookies.remove(name, {
|