This commit is contained in:
2025-09-09 09:34:35 +03:00
parent 6a1d81bfa8
commit 3612ada03a
22 changed files with 285 additions and 54 deletions

View File

@@ -1,5 +1,6 @@
"use client";
import assert from "assert";
import { proxyFetch } from "./utils";
export type UserProfileDetails = {
@@ -27,6 +28,7 @@ export async function getLoggedInUser(): Promise<{
}
}
);
assert(data.ok);
const J = await data.json();
if (J.errors) {
return null;