[Solved] Users being kicked out randomly

Hello, I’m experiencing unexpected logouts when users login to our app, its random as sometimes it just takes a few secs and some other times minutes. We use accounts-passwords and useraccounts packages, I tried everything but cannot find the reason why this happens

here is a list of packages we have installed

meteor-base@1.4.0             # Packages every Meteor app needs to have
mobile-experience@1.0.5       # Packages for a great mobile UX
mongo@1.6.2                   # The database Meteor supports right now
blaze-html-templates
session@1.2.0                 # Client-side reactive dictionary for your app
jquery@1.11.10                  # Helpful client-side library
tracker@1.2.0                 # Meteor's client-side reactive programming library
reactive-dict@1.3.0
es5-shim@4.8.0                # ECMAScript 5 compatibility for older browsers.
ecmascript@0.12.4              # Enable ECMAScript2015+ syntax in app code

arillo:flow-router-helpers
useraccounts:flow-routing
kadira:blaze-layout
peppelg:bootstrap-3-modal
useraccounts:bootstrap
mizzao:user-status
standard-minifier-css@1.5.3
standard-minifier-js@2.4.1
lookback:tooltips
plusmore:reactive-responsive-helpers
meteortoys:allthings
shell-server@0.4.0
manuel:reactivearray
utilities:avatar
jeremy:selectize
mixmax:smart-disconnect
meteorhacks:ssr
meteorhacks:inject-initial
chrismbeckett:toastr
accounts-password@1.5.1
dynamic-import@0.5.1
staringatlights:fast-render@3.0.4
yuukan:streamy
raix:handlebar-helpers
underscore@1.0.10
cultofcoders:persistent-session
nitrolabs:cdn
lamhieu:hypersubs
check@1.3.1

Any help will be much appreciated.

Thank you

To add to it, this is the log file from our AWS server showing the kickout after 17 seconds (but we also had some after just 20 milliseconds which seems like a RACE condition):

Sep 20 14:00:21.331 SessionId: MfzcfkXX5KgKeACbr with Ip: null was kicked due 15 min inactivity!
Sep 20 14:00:03.007 Finished Daily Manager for users!
Sep 20 14:00:03.007 usersQueue is 1 users. Getting their services.
Sep 20 14:00:03.006 Adding user DtvPpgeD9kExdwodn to queue daily/weekly update
Sep 20 13:59:18.993 (qD4hvtrg4kNmApgdj) Last login: Thu Sep 19 2019 11:00:14 GMT+0000 (UTC) was within 24h refresh limit
Sep 20 13:59:18.993 (qD4hvtrg4kNmApgdj) Time since last login: 68344197 ms
Sep 20 13:59:18.988 (qD4hvtrg4kNmApgdj) Login successful

Problem is solved, it was a logic error in our code