Function useLogin

  • Beta

    Hook to securely login to a backend with the connected wallet. The backend authentication URL must be configured on the ThirdwebProvider.

    Returns {
        isLoading: boolean;
        login: (() => Promise<any>);
    }

    • A function to invoke to login with the connected wallet, and an isLoading state.
    • isLoading: boolean
    • login: (() => Promise<any>)
        • (): Promise<any>
        • Returns Promise<any>

Generated using TypeDoc