useAuthUi()
allows you to control the display of the Auth UI modal within the AuthUiProvider. This is the recommended way to handle sign-in to Auth.
The hook exposes the following methods and variables to manage the modal’s behavior.
openLogin()
closeLogin()
isLoginOpen
to false
.
isLoginOpen
true
when the modal is open and false
when the Modal closes.
Example: