import type { LoginStatus } from "@/data/schemas/auth";
import { getAuthRepository } from "@/data/repositories/auth_repository";
import type { Result } from "@/utils/result";

/** UI-independent use case for establishing a top-up handoff session. */
export function consumeTopUpHandoff(
  handoffToken: string,
): Promise<Result<LoginStatus>> {
  return getAuthRepository().consumeTopUpHandoff(handoffToken);
}
