restarone / violet_rails_ios_client

0 stars 3 forks source link

Multi app support session preservation (#25) #26

Closed donrestarone closed 1 year ago

donrestarone commented 1 year ago
donrestarone commented 1 year ago

@josessolmaximo web session preservation is not working-- how did you verify that?

When I login to http://violet.restarone.solutions via the iOS app -- it works, but then when I close the app I have to login again

josessolmaximo commented 1 year ago

Did you tick the remember me checkbox? I think that's necessary. https://user-images.githubusercontent.com/112497883/236863450-9f58435f-c5a7-40d3-aae6-b412438fdc90.mov

donrestarone commented 1 year ago

@josessolmaximo thanks for flagging, I'll check with option turned on.

Is there a reason why the client doesnt hold onto the session if the checkbox isn't selected?

josessolmaximo commented 1 year ago

Right now what I'm doing is saving the webview's cookies to disk and reading them on app open. I think if you don't check remember me it doesn't save the credentials to cookies.

donrestarone commented 1 year ago

okay @josessolmaximo -- we will handle the default checked condition on the server-side 👍