https://supertokens.com/ logo
Docs
Join the conversationJoin Discord
Channels
community
contributing
general
github-activity
info
introductions
new-releases
random
security
support-questions
welcome-0xdelusion
welcome-aj-ya
welcome-aleksandrc
welcome-alpinjs
welcome-amberlamps1
welcome-andrew-rodriguez
welcome-ankit-choudhary
welcome-anthony-stod-custodio
welcome-call-in
welcome-chwalbox
welcome-claybiokiller
welcome-co7e
welcome-cosmoecwsa
welcome-devdag
welcome-dinso
welcome-drebotelho
welcome-elio
welcome-ernest
welcome-foxbarrington
welcome-fromscratch
welcome-galto4ir
welcome-goetzum
welcome-hay-kot
welcome-himanshu-kukreja
welcome-hossambarakat
welcome-ichikawakazuto
welcome-jahir9991
welcome-jamesl
welcome-jerry123424
welcome-john-oliver
welcome-jonas-alexanderson
welcome-jxyz
welcome-kelvinwop
welcome-kraz
welcome-lancekey
welcome-leoo
welcome-lukeacollins
welcome-m-j-mon
welcome-malik-khoja
welcome-marco
welcome-mardadi
welcome-meshguy
welcome-metamorph
welcome-mike-tectu
welcome-mirzok
welcome-mozomig
welcome-naberyou66_
welcome-nacer
welcome-namratha
welcome-naveenkumar
welcome-nightlight
welcome-nischith
welcome-notankit
welcome-olawumi
welcome-pavan-kumar-reddy-n
welcome-pineappaul
welcome-poothebear
welcome-rick
welcome-samuel-qosenergy
welcome-samuelstroschein
welcome-shubhamgoel23
welcome-shubhamkaushal
welcome-sidebar
welcome-surajsli
welcome-suyash_
welcome-syntaxerror
welcome-tauno
welcome-tauno
welcome-tawnoz
welcome-teclali
welcome-tls
welcome-turbosepp
welcome-vikram_shadow
welcome-yann
Powered by Linen
support-questions
  • s

    seniorquico

    08/19/2021, 1:47 PM
    our users are working around the problem by clearing all site data in their browser's dev tools, and that allows them to go back through the login process & regain access to the app. this makes it sound like a local state issue with the site/SDK?
  • r

    rp

    08/19/2021, 1:49 PM
    Just thinking aloud: so if there is another request that's already refreshed the session, whilst the previous one got 401 try refresh token, then the previous one would not call the refresh API. But it should call the original request again. But i guess this is not the situation since users should not notice this anyway
  • r

    rp

    08/19/2021, 1:50 PM
    another reason is that the locking mechanism (that happens before a refresh is called) is failing somehow such that it never successfully acquires the lock. This way, a refresh API would never be called.
  • s

    seniorquico

    08/19/2021, 1:51 PM
    > if there is another request that's already refreshed the session the HAR file captured all network traffic from the start of the site loading. there are no logged HTTP requests to refresh the session.
  • r

    rp

    08/19/2021, 1:52 PM
    hmmm
  • s

    seniorquico

    08/19/2021, 1:52 PM
    or do you mean another request that ran previously, during a different session?
  • r

    rp

    08/19/2021, 1:52 PM
    no. the same session. But perhaps a different browser tab
  • r

    rp

    08/19/2021, 1:52 PM
    i think the issue is to do with the locking..
  • r

    rp

    08/19/2021, 1:53 PM
    which can be solved by clearing its key in localstorage
  • s

    seniorquico

    08/19/2021, 1:53 PM
    this is running inside an Electron 13 app. there's only a single renderer process (or "browser tab").
  • r

    rp

    08/19/2021, 1:53 PM
    hmmmm
  • r

    rp

    08/19/2021, 1:53 PM
    locking issues can still happen within one tab
  • r

    rp

    08/19/2021, 1:54 PM
    but Auth0 uses our locking lib as well.. and if they haven't complained about it, then it seems unlikely that that's the issue.
  • r

    rp

    08/19/2021, 1:55 PM
    are you able to replicate it at all?
  • s

    seniorquico

    08/19/2021, 1:56 PM
    the users were only able to provide HAR files, and i don't have any other cookie or local storage state.
  • s

    seniorquico

    08/19/2021, 1:56 PM
    i am not. out of thousands of daily active users... it only affects about a dozen per day.
  • r

    rp

    08/19/2021, 1:56 PM
    hmmmm
  • r

    rp

    08/19/2021, 1:57 PM
    could it be an issue with the env the Electron app is running in - for these users.
  • s

    seniorquico

    08/19/2021, 1:57 PM
    but it's consistent enough. our community support team on Discord now has this documented as a "known issue", and they just run users through clearing site data and having the user login again.
  • s

    seniorquico

    08/19/2021, 1:58 PM
    a smaller percentage of users access our site through their web browsers. i have yet to receive a report of this occurring that explicitly identified it happening in a browser. but stats-wise... it's much more likely to hear of issues in the Electron app anyway. that's how most people use our product.
  • r

    rp

    08/19/2021, 1:58 PM
    Can you ask them to clear just the localstorage key that starts with "browser-tabs-lock-key" and then reload the page?
  • r

    rp

    08/19/2021, 1:59 PM
    cause if this solves the issue for them, then i know that it's 100% a locking issue.. else it's 100% not a locking issue.
  • s

    seniorquico

    08/19/2021, 1:59 PM
    perfect. yes, i will relay this to the team. i will get back to you after they get an opportunity to run it by a user.
  • r

    rp

    08/19/2021, 2:00 PM
    sounds good! thanks
  • r

    rp

    08/19/2021, 2:00 PM
    so if the key is missing in the localstorage when this issue is faced, then also we know that it's not a locking issue. So it's an issue only if the key is there, the user deletes that key, and reloads the app (though just deleting should be enough), and then it starts to work
  • u

    user

    08/19/2021, 2:01 PM
    What about in a plesk installation?
  • u

    user

    08/19/2021, 2:01 PM
    Is there a ui to this or mostly cli
  • u

    user

    08/19/2021, 2:01 PM
    Jw
  • r

    rp

    08/19/2021, 2:02 PM
    does plesk use chromium?
  • r

    rp

    08/19/2021, 2:03 PM
    for what?
Powered by Linen
Title
r

rp

08/19/2021, 2:03 PM
for what?
View count: 2