Best answer

Invalid credentials expected behaviour

  • 25 March 2020
  • 3 replies

Userlevel 1


Sorry if this is a noob question. I am trying to authenticate using Session Auth, and I am testing different scenarios. What is the expected behaviour when the user enters an incorrect password? 

I got this output from a mock endpoint that returns 401. Is this what the end user will see? 





Best answer by Danvers 1 April 2020, 17:27

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +12

Hi @Ian Stewart - sorry for the delay in getting back to you on this one!


We have some docs on how to handle errors in your Zap that should help you here: - this is written for CLI, but you can do the same thing in Visual Builder with Code Mode ( 


​I hope that helps, please let me know if you have any questions!

Userlevel 1

Hi @Danvers


Thank you for your reply. It solves my issue. I can see the error message now says “You are seeing this because you are an admin”. I take it to mean that the end user will not see the stack trace. 



Userlevel 7
Badge +12

That sounds like it’s working as it should, yes. The best way to be sure is to set up a test account - that way you can be sure that a regular user is seeing what you intended.