AE
Ash Elixir•3y ago
miguels

Users getting logged out every few hours

I recently switched our auth from phx.gen.auth to AshAuthentication. The switch was very smooth and users didn't notice anything except for one detail: they're now getting logged out every few hours (exact time seems to vary). I've been going through all documentation and the Discord but haven't found anything related. The only thing I found was this option token_lifetime, changing the value hasn't helped so far, though. Any ideas what could be happening or were I can start debugging?
6 Replies
ZachDaniel
ZachDaniel•3y ago
@jart
miguels
miguelsOP•3y ago
Some extra details: - It's a LiveView app - We're only using the password strategy Oh ok it's just the lack of "remember me" cookie 🤣 That explains why users getting logged out after different amounts of time...
jart
jart•3y ago
Oh no. Yeah, I’d be keen to accept a PR that adds a remember me add on and threads it all the way through to the UI
miguels
miguelsOP•3y ago
Managed to add a remember me cookie to the app. Let's see if I can turn it into an add on for AshAuth, any pointers how to get started?
jart
jart•3y ago
Look at the custom strategy documentation.

Did you find this page helpful?