riverrun / openmaize

No longer maintained - was an Authentication library for Plug-based applications in Elixir
Other
206 stars 30 forks source link

Persist session to avoid logouts on VM restart #52

Closed noma4i closed 8 years ago

noma4i commented 8 years ago

Is it possible? In dev it's a pain when every app restart it leads to user logout. For production all users are kicked on app/vm restart

jaimeiniesta commented 8 years ago

Looks like a duplicate of https://github.com/riverrun/openmaize/issues/51

riverrun commented 8 years ago

If you're happy using cookie-based sessions, instead of JSON Web Tokens, then this issue will be solved in version 1.1, which I should be releasing in a day or two (you can see the progress on the sessions branch). I'll close this issue now, and I'll make any updates to #51.

noma4i commented 8 years ago

JWT suites well on stateless apps other then you use phoenix and state is persistent.