hansihe / live_data

https://hex.pm/packages/live_data
110 stars 1 forks source link

LiveSession and Hooks support #20

Open RodolfoSilva opened 7 months ago

RodolfoSilva commented 7 months ago

Hi @hansihe, thanks for bringing LiveData to life.

I want to know the best way to handle authentication with LiveData?

Do you have any plan to support something like attach_hook and live_session?

hansihe commented 7 months ago

Yep, this is indeed within scope for the library, but will likely be addressed after the fundamentals are worked on a bit more and rare more solid.

RodolfoSilva commented 7 months ago

I'm currently trying to add this functionality to my project.

RodolfoSilva commented 7 months ago

My plan is to use LiveData with Flutter Mirai library.

hansihe commented 7 months ago

That library looks very cool!

You can pass parameters when opening the livedata, the server side will receive that when mounting. That could be used to pass an auth token or whatever.

As of today there is no support for live sessions or hooks.