aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/client/api/index.ts
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-12-06 18:11:14 +0900
committernsfisis <nsfisis@gmail.com>2025-12-06 18:25:52 +0900
commite367c698e03c41c292c3dd5c07bad0a870c3ebc4 (patch)
tree256c022a03b3f213a75261595ffddc0f87c0475b /src/client/api/index.ts
parent17ba3c603e4c522ccca282f6786fff2e0b3f4f6e (diff)
downloadkioku-e367c698e03c41c292c3dd5c07bad0a870c3ebc4.tar.gz
kioku-e367c698e03c41c292c3dd5c07bad0a870c3ebc4.tar.zst
kioku-e367c698e03c41c292c3dd5c07bad0a870c3ebc4.zip
feat(client): add API client with auth header support
Implements fetch wrapper that handles JWT authentication, automatic token refresh on 401 responses, and provides typed methods for REST operations. Includes comprehensive tests. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'src/client/api/index.ts')
-rw-r--r--src/client/api/index.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/client/api/index.ts b/src/client/api/index.ts
new file mode 100644
index 0000000..2d95c14
--- /dev/null
+++ b/src/client/api/index.ts
@@ -0,0 +1,15 @@
+export {
+ ApiClient,
+ ApiClientError,
+ type ApiClientOptions,
+ apiClient,
+ localStorageTokenStorage,
+ type TokenStorage,
+} from "./client";
+export type {
+ ApiError,
+ AuthResponse,
+ RegisterResponse,
+ Tokens,
+ User,
+} from "./types";