chatwoot-mobile-app icon indicating copy to clipboard operation
chatwoot-mobile-app copied to clipboard

Getting logged out everytime I open the app

Open jean-philippeansel opened this issue 2 years ago • 3 comments

Android app v.1.4.5 Every time I open the app, it asks me for the installation URL, username and password. Looks like the session does not last. The previous version was not doing it.

jean-philippeansel avatar May 31 '22 07:05 jean-philippeansel

We are encountering the same issue.

julienmarie avatar Aug 05 '22 10:08 julienmarie

This issue is really a blocker for adoption. Having to log in again and again is making our team not use the app.

julienmarie avatar Aug 29 '22 02:08 julienmarie

@jean-philippeansel Missed this one, app is working fine in the latest version

@jean-philippeansel @julienmarie Could you please share your installation and mobile app version?

muhsin-k avatar Aug 29 '22 07:08 muhsin-k

The auto logouts are happening for accounts used by multiple people/devices.

This is because of a flag in devise_token_auth.rb in rails codebase in this line config.max_number_of_devices

It sets the max number of concurrent devices per user, which is 10 by default. After this limit is reached, the oldest tokens will be removed. So, for example, Account A is being used by everyone in your organization thus multiple users/devices for one account, and the oldest token gets removed resulting in that user getting logged out.

Solution: Uncomment the mentioned line and increase max_number_of_devices to avoid logouts.

surbhitrao avatar Nov 30 '22 05:11 surbhitrao