Niche API Documentation - v0.1.0
    Preparing search index...

    Function logIn

    • Signs in an existing user with email and password.

      Validates with LogInSchema before calling Supabase. Returns the same error message for an unknown email and a wrong password to avoid revealing which accounts exist. On success, redirects to /events.

      Parameters

      • _prev: AuthFormState

        Previous form state (unused; required by useActionState).

      • formData: FormData

        Must contain email and password fields.

      Returns Promise<AuthFormState>

      AuthFormState with an error on failure, or redirects on success.