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

    Lord15dom

    03/09/2021, 10:28 AM
    here in Brazil to release applications and need a verification code sent to a specific number, and this program there I can intercept this code, type for escalating Whatsapp and I need a code through this script so I can intercept this code or access the number and redeem it
  • r

    rp

    03/09/2021, 12:14 PM
    @User I think this is the wrong server for your question. Apologies for not being able to help.
  • a

    abjennings

    03/09/2021, 11:47 PM
    Has anyone made SimpleTokens work with Next.js ?
  • a

    abjennings

    03/09/2021, 11:51 PM
    I found this: https://supertokens.io/docs/thirdpartyemailpassword/nextjs/supertokens-with-nextjs I will investigate.
  • r

    rp

    03/10/2021, 5:44 AM
    hey @User yes. There is an example implementation with nextJS that you can refer to: https://github.com/supertokens/supertokens-auth-react/tree/master/examples/with-next If you have any specific question, we are here to help.
  • o

    othiagocruz

    03/18/2021, 9:18 PM
    hey anyone implemented the with-next example using typescript?
  • r

    rp

    03/19/2021, 5:50 AM
    @User are you facing any issues?
  • o

    othiagocruz

    03/19/2021, 8:05 AM
    yeah.. the example does not works on next running typescript
  • r

    rp

    03/19/2021, 8:19 AM
    can you show me what error you are getting please?
  • o

    othiagocruz

    03/19/2021, 8:37 AM
    message has been deleted
  • r

    rp

    03/19/2021, 8:53 AM
    ok. Will check. Thanks
  • o

    othiagocruz

    03/19/2021, 8:55 AM
    some extra info i think it could be related to this or either undefined checks on the returning component
  • r

    rp

    03/19/2021, 8:55 AM
    thanks
  • r

    rp

    03/19/2021, 9:04 AM
    @User I just tried to run the with-next example, and it works fine
  • r

    rp

    03/19/2021, 9:05 AM
    did you modify any code from the example?
  • o

    othiagocruz

    03/19/2021, 9:05 AM
    did you tested on typescript next?
  • r

    rp

    03/19/2021, 9:05 AM
    i didn't. Oops.. how do i do that?
  • o

    othiagocruz

    03/19/2021, 9:06 AM
    https://nextjs.org/docs/basic-features/typescript
  • r

    rp

    03/19/2021, 9:07 AM
    can you send me your tsconfig.json file?
  • o

    othiagocruz

    03/19/2021, 9:07 AM
    its the one generated by next, no customizations
  • o

    othiagocruz

    03/19/2021, 9:07 AM
    {
      "compilerOptions": {
        "baseUrl": ".",
        "target": "es5",
        "lib": [
          "dom",
          "dom.iterable",
          "esnext"
        ],
        "allowJs": true,
        "skipLibCheck": true,
        "strict": true,
        "forceConsistentCasingInFileNames": true,
        "noEmit": true,
        "esModuleInterop": true,
        "module": "esnext",
        "moduleResolution": "node",
        "resolveJsonModule": true,
        "isolatedModules": true,
        "jsx": "preserve"
      },
      "exclude": [
        "node_modules"
      ],
      "include": [
        "next-env.d.ts",
        "**/*.ts",
        "**/*.tsx"
      ]
    }
  • r

    rp

    03/19/2021, 9:07 AM
    thanks
  • o

    othiagocruz

    03/19/2021, 9:08 AM
    oh there is the baseUrl thing i added
  • o

    othiagocruz

    03/19/2021, 9:08 AM
    or maybe it was already there?
  • r

    rp

    03/19/2021, 9:10 AM
    i added the above tsconfig.json file, but it still works for me. What else do I need to do to get the error?
  • r

    rp

    03/19/2021, 9:11 AM
    the source code in the with-next example is written in JS btw.
  • o

    othiagocruz

    03/19/2021, 9:12 AM
    mm i do have a Layout component wrapping the component on _app.tsx, let me check if removing that works
  • o

    othiagocruz

    03/19/2021, 9:15 AM
    yeah still the same error, this is weird
  • o

    othiagocruz

    03/19/2021, 9:18 AM
    javascript
    if (typeof window !== "undefined") {
      SuperTokensReact.init({
        useReactRouterDom: false,
        appInfo: {
          appName: "storefront",
          websiteDomain,
          apiDomain: websiteDomain,
          apiBasePath,
        },
        recipeList: [SessionReact.init()],
      })
    } else {
      SuperTokensNode.init({
        supertokens: {
          connectionURI: process.env.SUPERTOKENS_DOMAIN || "",
          apiKey: process.env.SUPERTOKENS_API_KEY,
        },
        appInfo: {
          appName: "storefront",
          apiDomain: websiteDomain,
          websiteDomain,
          apiBasePath,
        },
        recipeList: [SessionNode.init()],
      })
    }
  • o

    othiagocruz

    03/19/2021, 9:18 AM
    i also modified the init function
Powered by Linen
Title
o

othiagocruz

03/19/2021, 9:18 AM
i also modified the init function
View count: 2