Join Nostr
2024-12-09 12:23:45 UTC

nilesh on Nostr: I was hoping to write a single-file multi-user (JWT-based auth) liveview-based todo ...

I was hoping to write a single-file multi-user (JWT-based auth) liveview-based todo list app using phoenix_playground but did not succeed:

- LiveView's `mount/3` method does not receive session data on websocket.
- phoenix_playground does not support on_mount callback
- Trying to use custom endpoint module suppresses underlying errors making it difficult to make further progress

https://gist.github.com/nileshtrivedi/fe35f9ffee98121583dd1fd102a817dd

Elixir slack thread: https://elixir-lang.slack.com/archives/CD594E0UU/p1733746871041619

#elixir #MyElixirStatus #programming