onEvent

Handles events triggered in the authentication form, updating the state accordingly.

This function takes an AuthenticationFormEvent as input and performs state modifications based on the event type:

Parameters

event

The AuthenticationFormEvent triggering the state update.