feature/state-and-data-fetching #1

Merged
ilia merged 27 commits from feature/state-and-data-fetching into main 2026-03-24 08:02:20 +00:00
4 changed files with 28 additions and 0 deletions
Showing only changes of commit fa3f461add - Show all commits

View File

@@ -1,2 +1,3 @@
export * from "./lib";
export * from "./ui";
export * from "./model";

View File

@@ -0,0 +1,2 @@
export * from "./types/service";
export * from "./types/store";

View File

@@ -0,0 +1,18 @@
import type { User } from "entities/User";
export interface AuthResponse {
/**
* Access token for the authenticated user.
*/
accessToken: string;
/**
* User object associated with the access token.
*/
user: User;
}
export type AuthStatus =
| "idle"
| "loading"
| "authenticated"
| "unauthenticated";

View File

@@ -0,0 +1,7 @@
import type { User } from "entities/User";
import type { AuthStatus } from "./service";
export interface AuthStore {
user?: User;
status?: AuthStatus;
}