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

    06/22/2020, 8:33 PM
    So if you just move to "~2.1.0"
  • r

    rp

    06/22/2020, 8:33 PM
    that should solve this issue.
  • u

    user

    06/22/2020, 8:36 PM
    Ohhh
  • u

    user

    06/22/2020, 8:36 PM
    Ok
  • u

    user

    06/22/2020, 8:37 PM
    🙂
  • r

    rp

    06/22/2020, 8:39 PM
    🙂 Let me know if this error still persists.
  • u

    user

    06/22/2020, 8:58 PM
    Error was fixed
  • u

    user

    06/22/2020, 8:58 PM
    and now I have another one 😂
  • u

    user

    06/22/2020, 8:59 PM
    Error: No SuperTokens core available to query
  • u

    user

    06/22/2020, 8:59 PM
    Will dig around for this error.
  • u

    user

    06/22/2020, 8:59 PM
    Am I supposed to specify the port in the hosts?
  • r

    rp

    06/23/2020, 5:41 AM
    @User you are to specify the host and port like this "http://localhost:3567" or "http://127.0.0.1:9000" Please make sure the docker container is reachable via some host and port on your machine. Alternatively, you can connect to "https://try.supertokens.io" to get started quickly. It's an instance of SuperTokens that we host for you for testing purposes
  • u

    user

    06/23/2020, 5:20 PM
    Oh do I need to allow http/https traffic?
  • u

    user

    06/23/2020, 5:20 PM
    Guess I messed up in that
  • r

    rp

    06/23/2020, 5:50 PM
    you need to bind the host and port of the docker container to your machine. Once that is done, you can simply send a http request to the host and port you have bound the container to and it should work
  • r

    rp

    06/24/2020, 5:57 PM
    Hey! We have made a demo app for those who want to see an example implementation of SuperTokens for NodeJS: https://github.com/supertokens/supertokens-demo-app
  • s

    Sun Walker

    06/26/2020, 2:01 PM
    Hey @User I've got a problem where I'm using a third party service that needs to be secure. This is the situation: - I use SuperTokens to increase the Security of my app - I use a third party for a specific service. (I host the free server on AWS) - The third party uses refresh token based auth. - This means my app is now less secure because despite using supertokens, the most important part has tokens that are saved in async storage and they're just normal JWT How do I integrate the two?
  • r

    rp

    06/26/2020, 2:08 PM
    So in this scenario, most such third party apps issue tokens so that you can talk to them. Many people use these tokens to also talk to their own backend (which is usually done in an insecure way). What you can do is continue using SuperTokens as you normally do, and save the JWT / refresh tokens provided by this third party service only on your backend. If these tokens are per user, then you can associate these tokens as JWTPayload or map them against userIds in your backend. This way, whenever you need to query this third party service, you verify the supertokens session (like you normally do), and the get the JWTPayload to get these tokens. Or from the userId, get these tokens. If you need these tokens on your frontend, you can save them localstorage and use those to query the third party service. If these tokens are compromised, then your APIs won't (cause your APIs don't use these tokens to give access).
  • r

    rp

    06/26/2020, 6:17 PM
    @User please feel free to ask more questions if the above is not clear. I'm happy to get on a call as well to discuss this since it is a slightly complicated topic.
  • s

    Sun Walker

    06/28/2020, 12:41 AM
    @User Sure, Ill be asking more soon. Ill think about how to best do this as it does seem complicated
  • r

    rp

    06/28/2020, 5:20 AM
    👍
  • r

    rp

    07/01/2020, 9:11 AM
    hi @User
  • r

    rp

    07/01/2020, 1:45 PM
    Hi @User
  • s

    Sun Walker

    07/06/2020, 4:50 PM
    Hey @User we talked before about external service im using that has it's own auth. I was having trouble with the service I was using so now I'm using a different service which is similar. This one lets you use your own Auth but this is what it says:
  • s

    Sun Walker

    07/06/2020, 4:50 PM
    message has been deleted
  • s

    Sun Walker

    07/06/2020, 4:50 PM
    How does one use this with SuperTokens?
  • r

    rp

    07/06/2020, 4:58 PM
    So once a user logs in, what are the tokens this returns to your frontend?
  • r

    rp

    07/06/2020, 4:58 PM
    Also, which OAuth flows does this support - authorisation code grant flow?
  • r

    rp

    07/06/2020, 7:10 PM
    @User ^
  • s

    Sun Walker

    07/06/2020, 7:31 PM
    I asked this too soon @User I havent implemented it fully yet, so I dont know the answer to those. I'm implementing it now as we speak and then I'll know this information
Powered by Linen
Title
s

Sun Walker

07/06/2020, 7:31 PM
I asked this too soon @User I havent implemented it fully yet, so I dont know the answer to those. I'm implementing it now as we speak and then I'll know this information
View count: 2