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

    12/14/2021, 5:10 AM
    oh wow.. really strange
  • r

    rp

    12/14/2021, 5:10 AM
    let me check
  • u

    user

    12/14/2021, 5:10 AM
    Error: ThirdPartyEmailPassword recipe has already been initialised. Please check your code for bugs.
        at /home/julie/Workspace/app/ardis-mui/node_modules/supertokens-node/lib/build/recipe/thirdpartyemailpassword/recipe.js:215:23
        at /home/julie/Workspace/app/ardis-mui/node_modules/supertokens-node/lib/build/supertokens.js:231:20
        at Array.map (<anonymous>)
        at new SuperTokens (/home/julie/Workspace/app/ardis-mui/node_modules/supertokens-node/lib/build/supertokens.js:230:48)
        at Object.init (/home/julie/Workspace/app/ardis-mui/node_modules/supertokens-node/lib/build/supertokens.js:248:36)
        at initNode (webpack-internal:///./pages/_app.js:88:19)
        at runMicrotasks (<anonymous>)
        at processTicksAndRejections (internal/process/task_queues.js:93:5)
    event - build page: /api/auth/[[...path]]
    wait  - compiling...
    event - compiled successfully
    (node:401091) UnhandledPromiseRejectionWarning: Error: Initialisation not done. Did you forget to call the SuperTokens.init function?
        at Function.getInstanceOrThrowError (/home/julie/Workspace/app/ardis-mui/node_modules/supertokens-node/lib/build/supertokens.js:262:15)
        at /home/julie/Workspace/app/ardis-mui/node_modules/supertokens-node/lib/build/framework/express/framework.js:173:53
        at Generator.next (<anonymous>)
        at /home/julie/Workspace/app/ardis-mui/node_modules/supertokens-node/lib/build/framework/express/framework.js:44:75
  • u

    user

    12/14/2021, 5:11 AM
    Ah, so I also see that I'm getting the error
    Error: Please make sure that the apiDomain and websiteDomain have correct values
    . Here's my appInfo.js:
    export const appInfo = {
        // learn more about this on https://supertokens.io/docs/thirdpartyemailpassword/appinfo
        appName: "App",
        apiDomain: "http://localhost:3000",
        websiteDomain: "http://locahost:3000",
        apiBasePath: "/api/auth/",
      }
  • r

    rp

    12/14/2021, 5:12 AM
    the values are correct.
  • r

    rp

    12/14/2021, 5:14 AM
    free for a quick debug call please?
  • u

    user

    12/14/2021, 5:15 AM
    Sure, thank you! Give me just a minute to set up my audio
  • r

    rp

    12/14/2021, 5:16 AM
    meet.google.com/ehq-hxxu-ono
  • u

    user

    12/14/2021, 11:51 AM
    Hey, I'm trying to add locale for /auth and useSWR dla translation. I use Next.js and ThirdPartyEmailPasswordReact. I don't know why url isn't url + locale (i18n) + /auth And I found https://github.com/supertokens/supertokens-auth-react/issues/233 but I don't know if I'll do the same what It's ok. Can someone helps me?
  • r

    rp

    12/14/2021, 11:54 AM
    Right now we don’t have support for local languages 😦
  • r

    rp

    12/14/2021, 11:54 AM
    So the description in the issue is all that’s possible. But that’s super hacky. But it would work
  • r

    rp

    12/14/2021, 11:55 AM
    Finally, u could build your own UI for that form, whilst keeping other forms we provide in English.
  • u

    user

    12/14/2021, 11:57 AM
    But I've site with PL, EN and JP language.
  • r

    rp

    12/14/2021, 11:58 AM
    I see. Then try out the component override method we describe in the issue above
  • u

    user

    12/14/2021, 12:00 PM
    But I don't know if I have to change to something more, because I use ThirdPartyEmailPasswordReact with social, not emailpassword.
  • u

    user

    12/14/2021, 12:02 PM
    And I don't know why /auth doesn't listen i18n 🤔
  • r

    rp

    12/14/2021, 12:05 PM
    I would say that just change the /auth form and that’s it. Let the rest be in English if you can. Cause those r only reset password flow and Email verification flow.
  • r

    rp

    12/14/2021, 12:06 PM
    You can even inject JS into the /auth route and change the language by finding the dom element. Might be easier
  • u

    user

    12/14/2021, 12:13 PM
    All have to be in 3 languages. I only have to get to the texts :/
  • u

    user

    12/14/2021, 12:13 PM
    I don't understand how do it
  • u

    user

    12/14/2021, 12:17 PM
    Hmm and if I use Only Session Management with Only Social login? But what can I apiDomain = apiWebsite and apiBasePath: '/api/auth', when I'll use SuperTokens Account? I have had forms done before
  • r

    rp

    12/14/2021, 12:31 PM
    All you need to do to disable our UI is to pass a config value called disableDefaultImplementation in the forms you need to disable
  • r

    rp

    12/14/2021, 12:32 PM
    And then build your own UI in there
  • u

    user

    12/14/2021, 12:55 PM
    I done it and even I have form on site. I have to delete SuperTokensComponentNoSSR component yet.
  • r

    rp

    12/14/2021, 12:56 PM
    You may not want to remove that. Cause that makes sure that the page is loaded only if a session exists
  • r

    rp

    12/14/2021, 12:57 PM
    Or maybe I’m misunderstanding which component you’re talking about
  • u

    user

    12/14/2021, 12:59 PM
    So I have to do how in link even if I use ThirdPartyEmailPassword and add where I have init in the config for the frontend social button (signInAndUpFeature: { providers: [ ThirdPartyEmailPasswordReact.Google.init(), ThirdPartyEmailPasswordReact.Facebook.init(), ThirdPartyEmailPasswordReact.Github.init(), ThirdPartyEmailPasswordReact.Apple.init(), ], }, )?
  • u

    user

    12/14/2021, 1:00 PM
    I mean in this file: https://supertokens.io/docs/thirdpartyemailpassword/nextjs/setting-up-frontend
  • r

    rp

    12/14/2021, 1:01 PM
    Ah i see yea.. you can remove
    <SuperTokensComponentNoSSR />
    and build your own UI
  • r

    rp

    12/14/2021, 1:02 PM
    Alternatively, you can disable only the sign in / up UI like shown in step 1 here: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/embed-sign-in-up-form#step-1-disable-default-implementation
Powered by Linen
Title
r

rp

12/14/2021, 1:02 PM
Alternatively, you can disable only the sign in / up UI like shown in step 1 here: https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/embed-sign-in-up-form#step-1-disable-default-implementation
View count: 2