added checking on normal-token

This commit is contained in:
Kostya
2024-01-28 02:24:45 +03:00
parent 0f35a6b23c
commit eb466b6fe3

View File

@@ -1,5 +1,5 @@
import { BackendApiUrl } from '@/properties/Сonfig.js'; import { BackendApiUrl } from '@/properties/Сonfig.js';
import { DeleteAllCookie } from "@/assets/js/storage/CookieStorage";
export async function Post(url = "", data = {}) { export async function Post(url = "", data = {}) {
try { try {
@@ -14,6 +14,7 @@ export async function Post(url = "", data = {}) {
}); });
if (!response.ok) { if (!response.ok) {
DeleteAllCookie()
console.log("Fetch error:", response.status); console.log("Fetch error:", response.status);
} }