itube-specs 0.0.696 → 0.0.699
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.
- package/composables/use-user.ts +2 -1
- package/package.json +1 -1
package/composables/use-user.ts
CHANGED
|
@@ -112,7 +112,8 @@ export const useUser = (apiService) => {
|
|
|
112
112
|
const {generateLink} = useGenerateLink();
|
|
113
113
|
const cookie = useCookie('jwtoken', { path: '/', secure: true, httpOnly: false });
|
|
114
114
|
cookie.value = undefined; // или null
|
|
115
|
-
|
|
115
|
+
const domain = useRuntimeConfig().public.xDomain;
|
|
116
|
+
document.cookie = `jwtoken=; path=/; domain=${domain}; expires=Thu, 01 Jan 1970 00:00:00 GMT; Secure`;
|
|
116
117
|
|
|
117
118
|
const profile = useState<IProfileData | null>('profileData');
|
|
118
119
|
profile.value = null;
|