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

    07/22/2021, 6:44 PM
    Cool!
  • f

    frederic

    07/23/2021, 8:08 AM
    yes that sorted out the problem. Might be worth adding a note to the https://supertokens.io/docs/thirdpartyemailpassword/advanced-customizations/react-component-override/usage section to let users know they will need to change the supertokensConfig file extension from js/ts to jsx/tsx before updating the recipe. Also needed to use /** @jsxImportSource @emotion/react / instead of /* @jsx jsx */ in my case.
  • f

    frederic

    07/23/2021, 8:08 AM
    Thanks for the help @User
  • r

    rp

    07/23/2021, 10:41 AM
    @User sounds good. Will incorporate those in the docs soon.
  • l

    lomz

    07/23/2021, 8:54 PM
    Sweet project πŸ™‚ I'm currently evaluating identity providers for my company. From my due diligence, I got the impression that SSO was implemented but optional in supertokens... but it shows SSO on the roadmap. What is the status of SSO?
  • r

    rp

    07/24/2021, 4:09 AM
    Hey @lomz. When you say SSO, do you mean integration with SAML or Open ID connect providers? Or do you mean you want to allow a user to log onto multiple apps (on different domains) via a single login page?
  • u

    user

    07/24/2021, 11:46 AM
    hi, can't we use
    websiteDomain: "http://localhost:4000"
    ? I am getting
    Error: Please provide a valid domain name
    from
    normaliseURLDomainOrThrowError
  • u

    user

    07/24/2021, 11:46 AM
    just wanted to test it locally, not sure if I'm doing something wrong
  • r

    rp

    07/24/2021, 11:46 AM
    what version of the sdk are you using?
  • u

    user

    07/24/2021, 11:47 AM
    "supertokens-node": "^6.0.3"
  • r

    rp

    07/24/2021, 11:47 AM
    can you show your whole config object?
  • r

    rp

    07/24/2021, 11:47 AM
    i mean the init object
  • u

    user

    07/24/2021, 11:47 AM
    javascript
    supertokens.init({
      supertokens: {
        connectionURI: "http://localhost:3567",
      },
      appInfo: {
        appName: "appname",
        websiteDomain: "http://localhost:4000", // FIXME this should go into the environment configs
        apiDomain: "/api/",
      },
      recipeList: [Session.init(), EmailPassword.init()],
    });
  • r

    rp

    07/24/2021, 11:48 AM
    the
    apiDomain
    should be
    http://localhost:4000
    as well.
  • r

    rp

    07/24/2021, 11:48 AM
    you should set the
    apiBasePath
    to be
    /api/
  • r

    rp

    07/24/2021, 11:48 AM
    and the same goes for the frontend.
  • u

    user

    07/24/2021, 11:49 AM
    ah my bad
  • u

    user

    07/24/2021, 11:49 AM
    I misread the appinfo documentation
  • r

    rp

    07/24/2021, 11:50 AM
    no worries πŸ™‚
  • u

    user

    07/24/2021, 11:51 AM
    mixed the domain and base path 😫
  • u

    user

    07/24/2021, 11:51 AM
    thanks for quick response
  • r

    rp

    07/24/2021, 11:51 AM
    fair enough.. maybe we should have better error messages.. hehe
  • b

    B0BAI

    07/24/2021, 12:44 PM
    Hey what does "Handshake for session" mean?
  • r

    rp

    07/24/2021, 12:48 PM
    It's used to fetch session info like the public signing key. So that the backend SDK can do session verification without calling the core.
  • b

    B0BAI

    07/24/2021, 1:32 PM
    So if I am using the core is that irrelevant?
  • b

    B0BAI

    07/24/2021, 1:32 PM
    What will be the usecase for it?
  • r

    rp

    07/24/2021, 1:36 PM
    > So if I am using the core is that irrelevant? No. The session info is fetched from the core and saved in memory in the backend. > What will be the usecase for it? Once that info is saved, then access token verification can happen within the SDK itself. However, refreshing a session would still require calling the core.
  • g

    gusfune

    07/26/2021, 12:28 PM
    Question: Is Social Login with Apple in the current roadmap? It seems we can't use Supertokens on mobile for auth if Apple is not offered as a social login option. https://developer.apple.com/app-store/review/guidelines/#design (Item 4.8) > Apps that use a third-party or social login service (such as Facebook Login, Google Sign-In, Sign in with Twitter, Sign In with LinkedIn, Login with Amazon, or WeChat Login) to set up or authenticate the user’s primary account with the app must also offer Sign in with Apple as an equivalent option.
  • r

    rp

    07/26/2021, 12:35 PM
    We already have login with apple @User https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/signup-form/built-in-providers
  • g

    gusfune

    07/26/2021, 1:00 PM
    Oh, I didn't find in the doc I was looking at. My bad! Thanks
Powered by Linen
Title
g

gusfune

07/26/2021, 1:00 PM
Oh, I didn't find in the doc I was looking at. My bad! Thanks
View count: 2