Authentication failures
I am trying to debug authentication failures in a multi-node setup (load balanced not Elixir multi-node).
I get session data written: "user" => "user?id=6a6ece18-0ede-4b81-a22a-73edc43db6a8" implying the authentication was sucessful, but the failure callback is being invoked in the auth controller. I presume this may be related to the web socket possibly happening before the session data is recorded from the live session? Any pointers on how to debug welcome.
3 Replies
IIRC the authentication failure should be accompanied by a reason usually, right?
assuming you mean the failure hook in your auth controller
Reason is nil, but I think it is in my session code.
interesting, I'm not sure when
reason
could be nil