Add authentification

This commit is contained in:
2026-02-17 00:54:36 +01:00
parent ab98ba81c8
commit a8c8c489da
31 changed files with 1118 additions and 451 deletions

View File

@@ -1,15 +1,27 @@
import type { Product } from "@/services/resources/products";
export type UserLogged = {
logged: boolean;
user?: User;
};
export type Role = {
id: number;
name: string;
};
export type User = {
id: number;
name: string;
email: string;
products: Product[];
roles: Role[];
};
export type UserInputs = {
email: string;
name: string;
role_names: string[];
};
export type UserCreate = {