Server action not outputting value, only response. Am I misunderstanding something?

Hello,

I am trying to build a login system that also checks if the user has confirmed their email. If the serverconnect form receives an “invalid” response, it will trigger a modal for inputting a code sent by email, I think it’s a pretty standard procedure.
image

the problem is, I couldn’t get the set value “userid” despite having the output ticked. I only get the response 400’s text of “email unconfirmed”. Am I misunderstanding or misusing how response works here?

Community Page
Last updated: