mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-10-29 07:54:44 +00:00
first commit
This commit is contained in:
commit
035ac8ddb5
61 files changed
+6600
No files matched your search
@@ -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,
|
||||
});
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
Reference in new issue
Block a user