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
  • r

    rp

    10/16/2021, 3:37 PM
    Cool! Lmk if you run into any issues or see something that's weird
  • i

    Infatuation

    10/16/2021, 7:16 PM
    It works! Cool, that's smooth!
  • i

    Infatuation

    10/16/2021, 7:39 PM
    Verify session seems to not be triggering
  • r

    rp

    10/16/2021, 7:39 PM
    Are you using it in your route? Like I have in the example?
  • i

    Infatuation

    10/16/2021, 7:52 PM
    Yup, identically. When I auth I see the session is set properly in my storage as well
  • i

    Infatuation

    10/16/2021, 7:53 PM
    I get a 401 when attempting to visit the URL or trying to consume it in my front-end
  • r

    rp

    10/16/2021, 8:45 PM
    Right. Have you set the apiDomain And websiteDomain values correctly on the frontend and backend?
  • i

    Infatuation

    10/16/2021, 8:58 PM
    yep, identical on both
  • r

    rp

    10/16/2021, 8:59 PM
    Are you using axios on the frontend? If yes, have you added the supertokens interceptor to it for all axios imports?
  • i

    Infatuation

    10/16/2021, 8:59 PM
    Yes & yes
  • r

    rp

    10/16/2021, 9:00 PM
    Hmmm
  • r

    rp

    10/16/2021, 9:02 PM
    Let’s get on a call to debug this? I know the lob works fine and that the example app also works fine. Probably some config error..
  • r

    rp

    10/16/2021, 9:03 PM
    We can have the call sometime on Monday?
  • r

    rp

    10/16/2021, 9:03 PM
    https://supertokens.io/call-user
  • r

    rp

    10/17/2021, 9:37 AM
    @Infatuation did you get the code to work?
  • i

    Infatuation

    10/17/2021, 2:20 PM
    @User I did not
  • i

    Infatuation

    10/17/2021, 2:20 PM
    I might be able to do a call monday but I work throughout most of the day.
  • r

    rp

    10/17/2021, 2:25 PM
    @User I can do a call now also if you'd like.
  • i

    Infatuation

    10/17/2021, 2:27 PM
    That'd be amazing. Give me 10 minutes or so I'm just finishing up breakfast
  • r

    rp

    10/17/2021, 2:27 PM
    Alright.
  • i

    Infatuation

    10/17/2021, 2:34 PM
    Good to go!
  • r

    rp

    10/17/2021, 2:34 PM
    https://meet.google.com/pqa-cjhx-skz
  • r

    rp

    10/17/2021, 2:53 PM
    @User just to recap the issue and the solution: You were using https://localhost as your API domain and that caused an issue of incorrectly setting cookie config, which prevented the browser to store the cookies. This was solved by adding samesite=none and secure flag to the generated cookies.
  • i

    Infatuation

    10/17/2021, 2:53 PM
    Thank you so much for your help!
  • r

    rp

    10/17/2021, 2:55 PM
    We will probably release a fix for the localhost issue when used with https, so that you can remove those two configs (the SDK should have figured those out on its own)
  • r

    rp

    10/17/2021, 2:57 PM
    here is an issue for it for you to follow: https://github.com/supertokens/supertokens-golang/issues/36
  • u

    user

    10/18/2021, 4:34 AM
    the verifySession function is there a way I can call this as a normal function to get the session object back and not as a middleware? I am using tsoa atm and they don't have great support for express middleware atm. They only expose the req object
    try {
    const session = await verifySession(req, {}, () => {})
    }
    or can I wrap it in a promise and pass resolve as the next
  • r

    rp

    10/18/2021, 4:37 AM
    Yes. There is - a function called getSession: https://supertokens.io/docs/session/common-customizations/sessions/session-verification-in-api/get-session
  • u

    user

    10/18/2021, 4:38 AM
    it will work with a empty object for the res?
  • u

    user

    10/18/2021, 4:38 AM
    i dont have access to the res object
Powered by Linen
Title
u

user

10/18/2021, 4:38 AM
i dont have access to the res object
View count: 3