Skip to main content
Best answer

Invalid credentials expected behaviour


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 

Best answer by Danvers

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!

View original
Did this topic help you find an answer to your question?
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

Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • Answer
  • April 1, 2020

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!


  • Author
  • Beginner
  • 3 replies
  • April 15, 2020

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


Danvers
Forum|alt.badge.img+12
  • Zapier Staff
  • 3731 replies
  • April 16, 2020

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.