debug: add print
This commit is contained in:
@@ -3,6 +3,7 @@ import type { AuthData } from "./auth";
|
|||||||
export function isLoggedIn(
|
export function isLoggedIn(
|
||||||
authData: AuthData | null,
|
authData: AuthData | null,
|
||||||
): asserts authData is AuthData {
|
): asserts authData is AuthData {
|
||||||
|
console.log("AUTHDATA", authData);
|
||||||
if (!authData?.user.id) {
|
if (!authData?.user.id) {
|
||||||
throw new Error("User is not logged in");
|
throw new Error("User is not logged in");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user