Handling Error Response from Firebase Auth


I am doing an HTTP request to interact with firesbase auth.

I would like to be able to take the "message" : string "TEXT" and assign the "TEXT" to a variable to evaluate and do with as I please. I do not know how to address it though.

This is what firebase says i should get:

and this is what I get. looks good so far.

I get this or similar back from the parsed response body from the HTTP request.

I made a variable to match the schema, and it all goes nicely into little object:

If I try to call pageVars.signInError.message I come up with nothing. I cannot seem to use it in any other function or formula to show what the message is.

I would like to be able to call the pageVars.signInError.message to get “MISSING_EMAIL” or whatever the error is to evaluate it in some formula e.g. If pageVars.signInError.message is equal to “INVALID_PASSWORD” print “Wrong password” and do X flow.

Well, easy enough


gets me just what I needed.


Hey!, thanks for sharing this solution, was helpful for me, really apprecciate :slight_smile:

1 Like