lanis icon indicating copy to clipboard operation
lanis copied to clipboard

iOS randomly de-authenticates user

Open alessioC42 opened this issue 4 months ago • 13 comments

It appears, that a lot of iOS users report, that they randomly get signed off by the app.

What we know:

  • iOS devices on their latest software version
  • previously this did not happen with the same build?
  • maybe this code has something to do with it

alessioC42 avatar Sep 10 '25 10:09 alessioC42

Yeah I can confirm. I also had multiple reports after the last Update (to this day) and It seemingly only happens with iOS 18 (not sure what exact version)

And Instead of deleting the accounts it would be better if we would transfer the accounts to the new Keychain system

Rajala1404 avatar Sep 10 '25 16:09 Rajala1404

The code does not use a different keychain system.

When I moved the app from the dev account of my father to mine, it changed the bundle-id thus removing the keychain access.

The code should (and did) only detect when a bundle-id change has happened.

alessioC42 avatar Sep 10 '25 17:09 alessioC42

I could try removing the transfer code, since it does not serve a lot of purpose and the majority of users had a chance to update, but i will have to check my App Store connect dashboard to be sure.

alessioC42 avatar Sep 10 '25 17:09 alessioC42

I had another report and Its not exclusive to iOS 18. That person has iOS 17.7.10

Rajala1404 avatar Sep 19 '25 09:09 Rajala1404

Maybe I could create a testflight build with a bunch of logging API calls on all points of the login routine to debug this problem not in prod, but in beta.

(I also am starting at my new job on monday, so I am not sure how much time I have to do this.)

alessioC42 avatar Sep 19 '25 17:09 alessioC42

One classmate also has this issue. The iOS version was 18.6.1.

spezian avatar Sep 22 '25 06:09 spezian

I dont know if this is yet know but I had the same issue and just noticed that multiple session_X_db.sqlite are inside my Lanis folder (on the local storage). So maybe an issue with the app forgetting about the old sessions? I now just deleted all of them, maybe that will help. I will report if so.

ktox-dev avatar Sep 23 '25 04:09 ktox-dev

This should not help. There are at least two of these databases. One primary and all the other ones are a database per account. Depending on with what account you log in a different database is loaded.

If you only have 2 accounts then there should be only 2 documents. (At least, when you reinstall the app. Maybe the transfer of the app messed something up for updaters...)

alessioC42 avatar Sep 23 '25 05:09 alessioC42

yeah thats what I thought too, but I had 12 of them so...

ktox-dev avatar Sep 23 '25 10:09 ktox-dev

That could also explain why a reinstall helps because on iOS for some stupid reason the keychain is NOT deleted when an app gets uninstalled.

Rajala1404 avatar Sep 23 '25 10:09 Rajala1404

Next release (only god knows when this will happen) i will implement a prompt for users to reinstall the app.

alessioC42 avatar Sep 23 '25 15:09 alessioC42

Make sure that the Prompt is not mandatory. So basically something. "Do you experience many logouts since some time? Then reinstall the app to fix that" And then a Dont remind me again checkbox

Rajala1404 avatar Sep 23 '25 15:09 Rajala1404

Yeah. I will implement the necessary checks. Luckily the transfer code wrote something in the key 'ios-cert-ownership-transfer' so we can differentiate between different users based on weather they are experiencing the bug or not.

alessioC42 avatar Sep 23 '25 15:09 alessioC42