- useLogin(): {
isLoading: boolean;
login: (() => Promise<any>);
}
Beta
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>
Hook to securely login to a backend with the connected wallet. The backend authentication URL must be configured on the ThirdwebProvider.