Fork me on GitHub
#fulcro
<
2021-05-06
>
Tyler Nisonoff18:05:13

how are folks automatically signing out clients if their session is invalidated server side? I’ve been following the auth example in RAD to check the session, which will check the session once on pageload, (via the UISM auth-machine), but what if halfway through using the app, the redis session store is invalided? My pathom queries / mutations will stop returning results for data that requires proper authorization, but this can look like data loss to the clients.

Tyler Nisonoff18:05:58

perhaps checking the session in ring middleware, and utilizing custom response-middleware in the client?

lgessler04:05:39

yeah, that sounds like the right kind of move. also could do a pathom plugin: https://blog.wsscode.com/pathom/v2/pathom/2.2.0/plugins.html

hadils22:05:20

i am trying to upload an image using

(blob/upload-file! this :file/sha fname {:file-ident (comp/get-ident this)})
What is the proper format for fname? I tried a BLOB and a string filename.

hadils13:05:22

Will FormData work?