Fix: auth not refreshing on launch #15

This commit is contained in:
Kr4ight
2026-04-06 20:36:41 +02:00
parent 9769a2d6c1
commit 450ade4b53
6 changed files with 40 additions and 29 deletions
+4 -5
View File
@@ -1,4 +1,3 @@
import { MinecraftAccount } from "@/lib/auth";
import { GameVersion } from "@/lib/types";
export type SetState<T> = React.Dispatch<React.SetStateAction<T>>;
@@ -17,9 +16,9 @@ export interface Props {
versionRef: React.RefObject<HTMLDivElement | null>;
accountRef: React.RefObject<HTMLDivElement | null>;
accounts: MinecraftAccount[];
setAccounts: SetState<MinecraftAccount[]>;
accounts: [string, string][];
setAccounts: SetState<[string, string][]>;
activeAccount: MinecraftAccount | null;
setActiveAccount: SetState<MinecraftAccount | null>;
activeAccount: [string, string] | null;
setActiveAccount: SetState<[string, string] | null>;
}