logout

fun logout()

Logs out the current user.

Invokes the logout method from AuthenticationSingleton and clears sensitive information from the AuthFormState. Additionally, resets the AuthUiState to its initial state.