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

    rp

    10/08/2020, 7:11 PM
    I see.
  • u

    user

    10/08/2020, 7:12 PM
    the larger system also has a slightly longer dev runway
  • u

    user

    10/08/2020, 7:12 PM
    which makes a potential inhouse, or self hosted solution a viability
  • r

    rp

    10/08/2020, 7:14 PM
    I see. I would love to understand your requirement in more detail, and of course, help you out in anyway possible. For now, until we have out own auth, we can help with: - session management (very secure) - help you understand the best strategy to take from existing solutions (since OAuth can be very complex) Would you be open for a quick call sometime tomorrow?
  • r

    rp

    10/08/2020, 7:15 PM
    (I'll DM you)
  • s

    Sun Walker

    10/13/2020, 12:44 PM
    Hiya @User I'm getting an error from supertokens in react native
  • s

    Sun Walker

    10/13/2020, 12:44 PM
    message has been deleted
  • s

    Sun Walker

    10/13/2020, 12:44 PM
    Can you help me debug this?
  • s

    Sun Walker

    10/13/2020, 12:45 PM
    supertokens version:
    "supertokens-react-native": "^1.2.1"
  • s

    Sun Walker

    10/13/2020, 12:49 PM
    This was fixed by changing:
    st.init(`${API_URL}/refresh`);
    To
    st.init({ refreshTokenUrl: `${
    API_URL}/refresh` });
  • s

    Sun Walker

    10/13/2020, 12:50 PM
    I think we need a better error message because I had to do a global search to find the code and located it in supertokens and it doesnt mention the code in my app at all.
  • s

    Sun Walker

    10/13/2020, 1:07 PM
    ---------------------------------------- This no longer works and I cannot fix it
    init([{ hostname: authHost, port: authPort }]);
  • s

    Sun Walker

    10/13/2020, 2:31 PM
    I'm now getting this error:
    : SuperTokens core threw an error for a GET request to path: '/apiversion' with status code: 404 and message: Not found
  • r

    rp

    10/13/2020, 2:35 PM
    I see. What version of the backend SDK, frontend SDK and core are you using?
  • s

    Sun Walker

    10/13/2020, 2:36 PM
    I ran: supertokens update
  • s

    Sun Walker

    10/13/2020, 2:36 PM
    it says 'already up to date'
  • r

    rp

    10/13/2020, 2:36 PM
    what does
    supertokens --version
    say?
  • s

    Sun Walker

    10/13/2020, 2:36 PM
    backend:
    "supertokens-node": "^2.4.0",
  • s

    Sun Walker

    10/13/2020, 2:37 PM
    You are using SuperTokens Community
    SuperTokens Core version: 1.1.1
    Plugin Interface version: 1.0.0
    Database Plugin name: postgresql
    Database Plugin version: 1.0.0
    Java version: OpenJDK 12.0.2
    Installation directory: /usr/local/etc/supertokens
  • r

    rp

    10/13/2020, 2:38 PM
    The latest version is
    2.5.1
    . The update command has been removed in the community version now as we don't require a license key or anything to work (truly open source)
  • s

    Sun Walker

    10/13/2020, 2:38 PM
    Oh woo!
  • r

    rp

    10/13/2020, 2:38 PM
    So the update command for you in
    1.1.1
    is unfortunately, broken
  • s

    Sun Walker

    10/13/2020, 2:38 PM
    Ok
  • s

    Sun Walker

    10/13/2020, 2:38 PM
    I'll redownload
  • r

    rp

    10/13/2020, 2:39 PM
    Cool. Use docker if you can.. 10x easier to install
  • r

    rp

    10/13/2020, 2:39 PM
    and if you update to the latest node and react-native version, your implementation also gets way easier.
  • s

    Sun Walker

    10/13/2020, 2:41 PM
    How do I pass the supertokens port and host to 'init()' function?
  • r

    rp

    10/13/2020, 2:42 PM
    for nodejs:
    app.use(supertokens.init({
        hosts: "http://localhost:3567",
    }));
  • r

    rp

    10/13/2020, 2:43 PM
    as seen here: https://supertokens.io/docs/nodejs/usage-with-express/setup
  • s

    Sun Walker

    10/13/2020, 2:43 PM
    ah hosts is plural so I was expecting an array
Powered by Linen
Title
s

Sun Walker

10/13/2020, 2:43 PM
ah hosts is plural so I was expecting an array
View count: 2