enable 2fa flow

This commit is contained in:
Milo Schwartz 2024-12-23 23:59:15 -05:00
parent b1afba191e
commit 9e50a580a5
No known key found for this signature in database
33 changed files with 605 additions and 2084 deletions

View file

@ -1,4 +1,11 @@
import { GetUserResponse } from "@server/routers/user";
import { createContext } from "react";
export const UserContext = createContext<GetUserResponse | null>(null);
interface UserContextType {
user: GetUserResponse;
updateUser: (updatedUser: Partial<GetUserResponse>) => void;
}
const UserContext = createContext<UserContextType | undefined>(undefined);
export default UserContext;