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

    08/18/2021, 6:43 AM
    hey @User , did you set cors correctly on your backend?
  • r

    rp

    08/18/2021, 6:43 AM
    can i see the code for that?
  • u

    0xLtX1

    08/18/2021, 6:43 AM
    sure
  • u

    0xLtX1

    08/18/2021, 6:44 AM
    message has been deleted
  • r

    rp

    08/18/2021, 6:45 AM
    your origin in cors has to be
    http://localhost:3000
  • r

    rp

    08/18/2021, 6:45 AM
    and not just
    localhost:3000
  • u

    0xLtX1

    08/18/2021, 6:46 AM
    The previous issue was solved, thanks!
  • u

    0xLtX1

    08/18/2021, 6:46 AM
    But now when I try to signup, it throws another error
  • r

    rp

    08/18/2021, 6:47 AM
    which is?
  • u

    0xLtX1

    08/18/2021, 6:47 AM
    message has been deleted
  • u

    0xLtX1

    08/18/2021, 6:47 AM
    same error goes for the post route as well
  • r

    rp

    08/18/2021, 6:47 AM
    you need to enter the API key along with the connection URI as seen here: https://supertokens.io/docs/thirdpartyemailpassword/quick-setup/core/saas-setup#connecting-the-backend-sdk-with-supertokens-
  • u

    0xLtX1

    08/18/2021, 6:49 AM
    Works Perfectly now
  • u

    0xLtX1

    08/18/2021, 6:49 AM
    Thanks a ton @User !
  • u

    0xLtX1

    08/18/2021, 6:49 AM
    the backend setup docs dont have the apiKey in them
  • r

    rp

    08/18/2021, 6:49 AM
    ok great! Just out of curiosity, when you copied the connectionURI, did you miss out on the API key part in the popup?
  • r

    rp

    08/18/2021, 6:50 AM
    > the backend setup docs dont have the apiKey in them Cause that is optional.
  • u

    0xLtX1

    08/18/2021, 6:50 AM
    I didnt actually, I wondered if we have an api key then why arent we adding it
  • u

    0xLtX1

    08/18/2021, 6:50 AM
    I see
  • r

    rp

    08/18/2021, 6:50 AM
    > I didnt actually, I wondered if we have an api key then why arent we adding it Ahh.. fair enough.
  • r

    rp

    08/18/2021, 6:50 AM
    Thanks
  • u

    0xLtX1

    08/18/2021, 6:51 AM
    It would be great if you could add an optional section in the docs, for people who are not setting up a self hosted server
  • r

    rp

    08/18/2021, 6:51 AM
    Thanks! Will consider.
  • u

    0xLtX1

    08/18/2021, 6:51 AM
    Thanks for the guidance 😄
  • u

    user

    08/18/2021, 7:59 PM
    Can I pass the private key for Apple like that or does it have to be the content of the key as string?
  • r

    rp

    08/18/2021, 8:25 PM
    It has to be the content of the key as a string
  • u

    user

    08/18/2021, 10:03 PM
    Question: I wrap my React project with Capacitor so I can deploy native apps to the App Stores. When you open the app, it basically opens a "localhost" webview On iOS its: ``capacitor://localhost`` on Android its: ``http://localhost`` However on the SuperTokens backend I can only specify a single string for "websiteDomain". How can I solve this?
  • u

    user

    08/18/2021, 10:03 PM
    message has been deleted
  • u

    user

    08/18/2021, 11:23 PM
    I think I need to setup deep links:
  • r

    rp

    08/19/2021, 6:18 AM
    @User so the website domain value is for things like generating the password reset links or to send an email verification link. Would you want those links to be
    http://localhost/...
    ? If yes, then you should set the value of that as
    http://localhost
Powered by Linen
Title
r

rp

08/19/2021, 6:18 AM
@User so the website domain value is for things like generating the password reset links or to send an email verification link. Would you want those links to be
http://localhost/...
? If yes, then you should set the value of that as
http://localhost
View count: 2