several changes

This commit is contained in:
yohlo
2025-08-27 09:29:42 -05:00
parent 75479be334
commit 1eb621dd34
19 changed files with 140 additions and 330 deletions

View File

@@ -2,6 +2,7 @@ import { createContext, PropsWithChildren, useCallback, useContext, useMemo } fr
import { MantineColor, MantineColorScheme } from "@mantine/core";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { fetchMe } from "@/features/players/server";
import { Player } from "@/features/players/types";
const queryKey = ['auth'];
export const authQueryConfig = {
@@ -10,7 +11,7 @@ export const authQueryConfig = {
}
interface AuthData {
user: any;
user: Player | undefined;
metadata: { accentColor: MantineColor; colorScheme: MantineColorScheme };
roles: string[];
}