useLogin() function
This feature is currently in beta and may change based on feedback that we receive.
Hook to securely login to a backend with the connected wallet. The backend authentication URL must be configured on the ThirdwebProvider.
Signature:
export declare function useLogin(): {
login: (options?: LoginOptions) => Promise<void>;
isLoading: boolean;
};
Returns:
{ login: (options?: LoginOptions) => Promise<void>; isLoading: boolean; }
- A function to invoke to login with the connected wallet, and an isLoading state.