hansihe / live_data

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

LiveSession and Hooks support #20

Open RodolfoSilva opened 11 months ago

RodolfoSilva commented 11 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 11 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 11 months ago

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

RodolfoSilva commented 11 months ago

My plan is to use LiveData with Flutter Mirai library.

hansihe commented 11 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.