auth frontend

This commit is contained in:
AleksDw
2025-05-31 13:34:18 +02:00
parent 740f8a955d
commit 42e468f28f
8 changed files with 213 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ export function getMyAccount() {
return __awaiter(this, void 0, void 0, function* () {
const res = yield fetch("/api/auth/my_account");
if (!res.ok) {
throw Error("Użytkownik niezalogowany!");
throw Error("U<EFBFBD>ytkownik niezalogowany!");
}
const data = yield res.json();
return data;