FEAT: Added Celery Beat

FEAT: Added preferences Celery task to automatically record what categories users watched
This commit is contained in:
JustIceO7
2025-02-18 02:02:34 +00:00
parent 62d83aa4eb
commit 76de1b7d9d
9 changed files with 135 additions and 12 deletions

View File

@@ -3,12 +3,14 @@ import { createContext, useContext } from "react";
interface AuthContextType {
isLoggedIn: boolean;
username: string | null;
user_id: number | null;
setIsLoggedIn: (value: boolean) => void;
setUsername: (value: string | null) => void;
setUserId: (value: number | null) => void;
}
export const AuthContext = createContext<AuthContextType | undefined>(
undefined,
undefined
);
export function useAuth() {