Best answer

Invalid credentials expected behaviour

  • 25 March 2020
  • 3 replies
  • 1043 views

Userlevel 1

Hello,

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? 

 

Thanks,

Ian 

icon

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: https://platform.zapier.com/cli_docs/docs#error-handling - this is written for CLI, but you can do the same thing in Visual Builder with Code Mode (https://platform.zapier.com/docs/faq#how-does-code-mode-work). 

 

​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. 

 

Ian

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.