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
general
  • k

    KitsuneKenshi

    12/05/2021, 5:02 PM
    yep
  • r

    rp

    12/05/2021, 5:02 PM
    Have you added the SDK interceptors to? For all the instances of axios
  • k

    KitsuneKenshi

    12/05/2021, 5:02 PM
    and i did it as it's shown on webpage
  • k

    KitsuneKenshi

    12/05/2021, 5:02 PM
    message has been deleted
  • k

    KitsuneKenshi

    12/05/2021, 5:02 PM
    yep
  • r

    rp

    12/05/2021, 5:03 PM
    Hmm. Does session refresh never get called?
  • r

    rp

    12/05/2021, 5:03 PM
    Or have you seen it get called sometimes
  • k

    KitsuneKenshi

    12/05/2021, 5:04 PM
    nope i wasn't really paying attention to it
  • r

    rp

    12/05/2021, 5:04 PM
    Try this. Login, delete the access token cookie and call an API
  • r

    rp

    12/05/2021, 5:04 PM
    does the refresh get called then?
  • k

    KitsuneKenshi

    12/05/2021, 5:05 PM
    nope it just returns error and that's it
  • r

    rp

    12/05/2021, 5:07 PM
    right. So possible issues are: - You have not added the interceptor to the axios instance being used (but it seems like you have) - The configured API domain in the supertokens.init is not actually your API domain?
  • r

    rp

    12/05/2021, 5:09 PM
    Also is there a cookie named
    sIRTFrontend
    against your website's domain?
  • k

    KitsuneKenshi

    12/05/2021, 5:10 PM
    yep there's
  • r

    rp

    12/05/2021, 5:10 PM
    Alright. Can you confirm that you have correctly set the API domain on the frontend's config?
  • k

    KitsuneKenshi

    12/05/2021, 5:11 PM
    yep that's correct
  • r

    rp

    12/05/2021, 5:11 PM
    Does the value of
    sIRTFrontend
    change when you login?
  • r

    rp

    12/05/2021, 5:11 PM
    When you are logged out, the value of that should be
    remove
    . Post login, it should be some random string
  • k

    KitsuneKenshi

    12/05/2021, 5:12 PM
    well it's not getting removed but on login it changes
  • k

    KitsuneKenshi

    12/05/2021, 5:13 PM
    nvm
  • r

    rp

    12/05/2021, 5:13 PM
    hmm. Free for a quick call to figure out the issue?
  • k

    KitsuneKenshi

    12/05/2021, 5:13 PM
    it does
  • k

    KitsuneKenshi

    12/05/2021, 5:13 PM
    i thought it would just disappear but ye it's removing
  • r

    rp

    12/05/2021, 5:13 PM
    i mean it shouldn't disappear. The value of that should change to
    remove
  • k

    KitsuneKenshi

    12/05/2021, 5:14 PM
    ye it is
  • r

    rp

    12/05/2021, 5:14 PM
    i see
  • r

    rp

    12/05/2021, 5:14 PM
    Can I see your frontend and backend config then?
  • k

    KitsuneKenshi

    12/05/2021, 5:15 PM
    ye give me a sec
  • k

    KitsuneKenshi

    12/05/2021, 5:15 PM
    there
  • r

    rp

    12/05/2021, 5:16 PM
    hmm. Seems fine
Powered by Linen
Title
r

rp

12/05/2021, 5:16 PM
hmm. Seems fine
View count: 2