diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-12-06 18:30:04 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-12-06 18:30:04 +0900 |
| commit | 3923eb2f86c304bbd90c4eae9a338f7bc21c9e90 (patch) | |
| tree | afa2a4053cc91eb8379e26a08538cfd58c1479bc /src/client/stores/index.ts | |
| parent | e367c698e03c41c292c3dd5c07bad0a870c3ebc4 (diff) | |
| download | kioku-3923eb2f86c304bbd90c4eae9a338f7bc21c9e90.tar.gz kioku-3923eb2f86c304bbd90c4eae9a338f7bc21c9e90.tar.zst kioku-3923eb2f86c304bbd90c4eae9a338f7bc21c9e90.zip | |
feat(client): add auth store with React context
Implements token management via AuthProvider context that wraps the app.
Provides useAuth hook for components to access auth state and actions
(login, register, logout). Includes comprehensive tests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Diffstat (limited to 'src/client/stores/index.ts')
| -rw-r--r-- | src/client/stores/index.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/stores/index.ts b/src/client/stores/index.ts new file mode 100644 index 0000000..7117bd6 --- /dev/null +++ b/src/client/stores/index.ts @@ -0,0 +1,7 @@ +export type { + AuthActions, + AuthContextValue, + AuthProviderProps, + AuthState, +} from "./auth"; +export { ApiClientError, AuthProvider, useAuth } from "./auth"; |
