nilesh on Nostr: I was hoping to write a single-file multi-user (JWT-based auth) liveview-based todo ...
Published at
2024-12-09 12:23:45 UTCEvent JSON
{
"id": "4dbc370d45f93b2d8074579300e52d3fdc9430e7219ca0090183545c962470f9",
"pubkey": "e7736c5764b1e9259e97416ccd4cc9f6c83e348e4e22c20d08e3c25e0d9b285d",
"created_at": 1733747025,
"kind": 1,
"tags": [
[
"t",
"elixir"
],
[
"t",
"myelixirstatus"
],
[
"t",
"programming"
],
[
"proxy",
"https://fosstodon.org/users/nilesh/statuses/113622845056027576",
"activitypub"
]
],
"content": "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:\n\n- LiveView's `mount/3` method does not receive session data on websocket.\n- phoenix_playground does not support on_mount callback\n- Trying to use custom endpoint module suppresses underlying errors making it difficult to make further progress\n\nhttps://gist.github.com/nileshtrivedi/fe35f9ffee98121583dd1fd102a817dd\n\nElixir slack thread: https://elixir-lang.slack.com/archives/CD594E0UU/p1733746871041619\n\n#elixir #MyElixirStatus #programming",
"sig": "7119f6483252d7cca5c6a2ea0c1b3ed4e66c547a312180b4a021ecbd1dae61d46d17d6df119ffcbfb8ea6efc6355175651465de85e19b589b1eec5f4e53e54e6"
}