import { DefaultError, MutationOptions } from "@tanstack/react-query" import { useAuthenticateWithWallet } from "./useAuthenticateWithWallet" import type { Session } from "../api" function useSignInWithWallet( mutationOptions: Omit< MutationOptions, "mutationFn" | "mutationKey" > = {}, ) { const { authenticateWithWallet, authenticateWithWalletAsync, ...rest } = useAuthenticateWithWallet(false, mutationOptions) return { signInWithWallet: authenticateWithWallet, signInWithWalletAsync: authenticateWithWalletAsync, ...rest, } } export { useSignInWithWallet }