Fork me on GitHub
#hyperfiddle
<
2024-01-05
>
Dustin Getz13:01:07

Dan needs to try harder

😂 5
bhurlow18:01:31

opens link, sees lisp, puts laptop in industrial incinerator

😄 1
Vincent18:01:37

what is RSC?

Vincent18:01:44

new version of star craft i hope

😅 2
👏 2
elken21:01:44

React Server Components I assume

Vincent21:01:45

Oh nice. Yeah that sounds very relevant then. Uh I think the comparison is something like railway to fibre optic?

🙂 1
wei23:01:41

We can at least like the tweet mentioning electric though!

💡 2
Vincent21:01:29

In my latest in-roads on the adventure to smooth authentication of electric applications I have a solution in mind and I would like your feedback.

Vincent21:01:00

A picture worth at least 2^10 words...

🧑‍🎨 1
Vincent21:01:47

The only time we can read headers of the page is on page load, effectively insulating your electric application from the ring middleware stack. In my case, I want to collect a phone number, send a 2FA code, and confirm it to be true, I can do this in electric lady land in nested (e/client (e/server..)) blocks I can also save directly to the [shared] XTDB instance which you can see as the diamond between the "moon and the sun" or whatever we can wall/call them. So, save to the database an "active session"

{phone {:expiry 123456475 
        :session-val "SEUTHOS751642753"}}
Okay, index by phone number, generate a session value in (e/server) save to xtdb Then, send an "over the air, over the wire" http POST to your Ring Middleware stack for your app. This POST shall: contain the phone and the session value, which the middleware will check against the xtdb values, confirm within expiry by whatever buffer, either mint a fresh session if close and otherwise, redraw the ring map = update the headers and finally, trigger a page refresh on the client via the successful response from that little blip across the waters there (an HTTP post)

Vincent22:01:11

I know the boys are gonna throw tomatoes at me but... it's not an Electric client or server it's a hybrid clerver? slient? okay maybe wordsmash not gonna make the grade...

🍪 1
grounded_sage23:01:23

I dno seemed pretty clerver to me

😂 1