Rename Auth context files

This commit is contained in:
2026-03-12 14:48:58 +01:00
parent acc421c92f
commit 2e1bd8e2ab
18 changed files with 16 additions and 16 deletions
+30
View File
@@ -0,0 +1,30 @@
import { createContext } from "react";
export interface Task {
id: number;
title?: string;
completed?: boolean;
[key: string]: unknown;
}
export interface User {
name: string;
lastname: string;
role: string;
email: string;
phone: string | null;
created_at: string;
profile_photo_path?: string | null;
tasks: Task[];
}
export interface AuthContextType {
user: User | null;
update: () => void;
login: (email: string, password: string) => Promise<{ status: number }>;
}
export const AuthContext = createContext<AuthContextType | null>(null);