refactor(auth): rename loginType to loginStatus and update related logic

This commit is contained in:
2026-06-11 12:04:48 +08:00
parent 72941d9c9f
commit b50191ed50
7 changed files with 41 additions and 30 deletions
+2 -2
View File
@@ -33,7 +33,7 @@ interface AuthState {
isLoading: boolean;
errorMessage: string | null;
isSuccess: boolean;
loginType: MachineContext["loginType"];
loginStatus: MachineContext["loginStatus"];
}
const AuthStateCtx = createContext<AuthState | null>(null);
@@ -62,7 +62,7 @@ export function AuthProvider({ children }: AuthProviderProps) {
state.matches("loadingOAuth"),
errorMessage: state.context.errorMessage,
isSuccess: state.matches("success"),
loginType: state.context.loginType,
loginStatus: state.context.loginStatus,
}),
[state],
);