It turned out that this example is not up to date with Elm 0.19 and uses the old Http 1 library (Http.send) rather than the ELM 0.19 Http 2 library (Http.post) which has brought too many unknowns into the easy learn by example paradigm.
Do you know of a simple online web app example online which uses HTTP 2 Http.post to do a simple Username/Password authentication, returning a JWT token, and then posting a query to an API using that token?
Thanks klaftertief - it is a very useful example. I built it and reviewed the code you pointed out and will digest more as I spread further down that particular road.
I am hoping for a more focussed example which uses elm/http 2.0.0 rather than 1.0.0 and particularly, the Http.post function, in a JWT auth exchange and API query. This would be a neat example for a proposal at work that I have in mind, focussed on a username/password login to obtain a JWT auth token, then carrying that token into an API query.
The Http.post function would help to keep the example concise and show off Elm’s strong point more effectively. The less code I have to explain in the presentation, the better!