feature(auth): create types

This commit is contained in:
Ilia Mashkov
2026-03-16 13:30:09 +03:00
parent 7ab2d3b812
commit fa3f461add
4 changed files with 28 additions and 0 deletions

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;
}