From e367c698e03c41c292c3dd5c07bad0a870c3ebc4 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 6 Dec 2025 18:11:14 +0900 Subject: feat(client): add API client with auth header support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/client/api/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/client/api/index.ts (limited to 'src/client/api/index.ts') 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"; -- cgit v1.2.3-70-g09d2