The props for the component.
The props for the AuthButton component.
Optional
closeOnSuccessDelay?: null | numberThe delay in milliseconds before the sign in modal is closed and the sign out button is shown after the sign in is successful. If null, the sign in modal will not be closed automatically. If 0, the sign in modal will be closed immediately.
Optional
onSignInSuccess?: () => voidA function to call when the sign in is successful.
Optional
onSignInSuccessTransitionEnd?: () => voidA function to call after the sign in success, when the dialog close transition ends.
Optional
onSignOutSuccess?: () => voidA function to call when the sign out is successful.
The delay in milliseconds before the sign in modal is closed and the sign out button is shown after the sign in is successful.
The function to call when the sign in is successful.
The function to call when the sign in success transition ends.
The rendered component.
A button that signs the user in or out.
This component will render the SignInModal component when the user is signed out, and a SignOutButton when the user is signed in. If the SDK is initializing (i.e. the initial user state is pending), the component will render a loading skeleton.