Only glancing, I’d guess that there will be a compile time warning about unused variable user, but can’t see and error (at least not compile time)…
However I’m guessing that the render_one call in your first render function is wrong, as I don’t think you have anything that accepts a map for the resource? ^.^;
oh sorry, was so sleepy and doing thing too fast xD here the error code :
Could not render “session.json” for Catastore.SessionView, please define a matching clause for render/2 or define a template at “web/templates/session”
here is my render code render(conn, "login.json", %{jwt: jwt, user: user})
Well in render_one it is expecting a single element that it will then put in a names assign (defaults to something that I don’t remember, can rename it with as: :blah).
The render function takes the set of assigns as it’s last argument.