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

    anujchhabria

    01/29/2021, 1:33 PM
    i am logging in using a domain and then querying the domain too
  • a

    anujchhabria

    01/29/2021, 1:34 PM
    but the cookie picks the localhost ip address instead
  • r

    rp

    01/29/2021, 1:34 PM
    > but the cookie picks the localhost ip address instead I'm not sure what this means completely.
  • a

    anujchhabria

    01/29/2021, 1:35 PM
    do you see the login endpoint here. its https://gateway.test
  • a

    anujchhabria

    01/29/2021, 1:36 PM
    the cookie however shows the domain as 127.0.0.1
  • r

    rp

    01/29/2021, 1:36 PM
    can I see the backend init code?
  • a

    anujchhabria

    01/29/2021, 1:37 PM
    yep thats setup on the config.yaml file
  • a

    anujchhabria

    01/29/2021, 1:38 PM
    i will share the file in a bit when i can access the server
  • r

    rp

    01/29/2021, 1:38 PM
    yea. So perhaps change that to your actual domain.
  • r

    rp

    01/29/2021, 1:38 PM
    so then it will send that as the cookie doamin, and not 127.0.0.1
  • a

    anujchhabria

    01/29/2021, 1:39 PM
    Let me check it in a bit. I will reach out to you here if there’s anything. Thanks man @rp
  • r

    rp

    01/29/2021, 1:39 PM
    cool!
  • a

    anujchhabria

    01/29/2021, 6:21 PM
    updated the cookie domain on the yaml file
  • r

    rp

    01/29/2021, 6:21 PM
    hmm and the cookies are still not being sent in the next API call?
  • a

    anujchhabria

    01/29/2021, 6:22 PM
    This is the request for the next call, no headers
  • r

    rp

    01/29/2021, 6:24 PM
    Please do the following: 1) call the login API 2) navigate to
    https://gatewaybeta.test
    on your browser 3) see the cookies - does that contain
    sAccessToken
    ?
  • a

    anujchhabria

    01/29/2021, 6:25 PM
    no cookies, and i get an 'unauthorised' response on the screen
  • r

    rp

    01/29/2021, 6:25 PM
    strange.. the browser is not setting the cookies..
  • r

    rp

    01/29/2021, 6:26 PM
    after you call login, does the browser console have a message?
  • a

    anujchhabria

    01/29/2021, 6:27 PM
    okay, i tried again, the cookies are there on gateway.test
  • r

    rp

    01/29/2021, 6:27 PM
    ah ok!!
  • r

    rp

    01/29/2021, 6:28 PM
    so they must be getting sent in the subsequent API call? if the API domain is https://gatewaybeta.test
  • a

    anujchhabria

    01/29/2021, 6:29 PM
    nope, thats what weird, if i hit the get url in the browser directly, its working and im able to see the cookies
  • a

    anujchhabria

    01/29/2021, 6:29 PM
    but in the api call its not sending the cookies
  • a

    anujchhabria

    01/29/2021, 6:29 PM
    shall i send you a video?
  • r

    rp

    01/29/2021, 6:30 PM
    sure. Please do..
  • r

    rp

    01/29/2021, 6:30 PM
    this is something that the browser controls entirely.. haha.. so it's expected to work!
  • d

    dbMI

    01/31/2021, 2:34 PM
    after deployment /auth route refresh gives a page not found. Any idea how I can correct this?
  • r

    rp

    01/31/2021, 3:16 PM
    You mean the refresh API is giving 404? Is the API being called by the library that’s giving 404 or are you navigating to that via your browser and that’s giving 404?
  • r

    rp

    01/31/2021, 3:17 PM
    @dbMI ^
Powered by Linen
Title
r

rp

01/31/2021, 3:17 PM
@dbMI ^
View count: 2