several changes
This commit is contained in:
@@ -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[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user