isopruefi-frontend / auth/AuthForm / default
Function: default()¶
default(
props):Element
Defined in: auth/AuthForm.tsx:31
Authentication form component for sign in and sign up.
Handles user input, authentication API calls, error display, and navigation.
On successful login, sets the global authentication state and navigates to the appropriate page.
On registration, shows a success message and navigates to the sign in page.
Parameters¶
props¶
AuthFormProps
Component props.
Returns¶
Element
The rendered authentication form.