first commit

This commit is contained in:
Tomas Dvorak committed 2026-04-10 12:01:36 +02:00
commit 035ac8ddb5
61 files changed
+6600

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
import createClient from "openapi-fetch";
import type { paths } from "@bookra/api-client/generated/types";
const baseUrl = import.meta.env.VITE_BOOKRA_API_URL ?? "http://localhost:8080";
export const apiClient = createClient<paths>({
baseUrl,
});
+14
View File
@@ -0,0 +1,14 @@
export type AuthSession = {
session?: {
id: string;
userId: string;
token?: string;
expiresAt?: string | Date;
};
user?: {
id: string;
email?: string;
name?: string;
image?: string | null;
};
};