Plug Basic Auth Error Help: (FunctionClauseError) no function clause matching in Plug.Crypto.secure_compare/2

Hey everyone, I’ve been dwelling on an error regarding basic auth → ** (FunctionClauseError) no function clause matching in Plug.Crypto.secure_compare/2.

I already set up the configs and the pipelines but for some reason not getting the pop up anymore (got it once, and then no longer anymore).

I can see in the logs that the function was called with nil, and the intended password, so I’m assuming the application is not capturing the entered password (or rather it’s not giving me the authentication form to do so)

Can you share more details on how you’re calling Plug.BasicAuth? Also, as a maintainer of Plug, I’d suggest to open an issue at GitHub - elixir-plug/plug: Compose web applications with functions for this :upside_down_face:

1 Like