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

    jackyoooi

    02/08/2022, 1:43 PM
    https://supertokens.com/docs/thirdpartyemailpassword/nextjs/setting-up-frontend
  • j

    jackyoooi

    02/08/2022, 1:44 PM
    message has been deleted
  • r

    rp

    02/08/2022, 1:44 PM
    And the frontend config please?
  • j

    jackyoooi

    02/08/2022, 1:45 PM
    I just copied these in the instructions and removed some providers from the original code
  • j

    jackyoooi

    02/08/2022, 1:46 PM
    message has been deleted
  • r

    rp

    02/08/2022, 1:46 PM
    Hmm. Do you see anything in the console log of the browser when you visit http://localhost:3000/auth?
  • j

    jackyoooi

    02/08/2022, 1:47 PM
    its looping POST and GET calls. It doesnt stop unless I move away from the URL
  • r

    rp

    02/08/2022, 1:48 PM
    where did you add the auth/[[...path]].js file?
  • j

    jackyoooi

    02/08/2022, 1:49 PM
    message has been deleted
  • j

    jackyoooi

    02/08/2022, 1:50 PM
    Does this work? Where is this fetching from?
  • r

    rp

    02/08/2022, 1:50 PM
    This should be in:
    pages
    β”œβ”€β”€ auth
    β”‚Β Β  └── [[...path]].js
  • j

    jackyoooi

    02/08/2022, 1:50 PM
    Oooh my mistake. I'll try again
  • r

    rp

    02/08/2022, 1:51 PM
    For frontend setup, you can't add in the api folder. The API stuff is in the next steps..
  • j

    jackyoooi

    02/08/2022, 1:51 PM
    It worked!! my bad
  • r

    rp

    02/08/2022, 1:51 PM
    great :))
  • j

    jackyoooi

    02/08/2022, 1:53 PM
    Is this recipe hosted by SuperTokens? Is there a recipe for self-hosting?
  • r

    rp

    02/08/2022, 1:53 PM
    All recipes can be self hosted.
  • r

    rp

    02/08/2022, 1:54 PM
    Please have a look at the architecture diagram for more details on how it's setup: https://supertokens.com/docs/community/architecture Essentially, you have to run a micro service (what we call "supertokens core"), which connects to your database. This service can be self hosted, or can be managed by us.
  • j

    jackyoooi

    02/08/2022, 1:56 PM
    https://tenor.com/view/fucking-awesome-gif-23101003
  • j

    jackyoooi

    02/08/2022, 1:56 PM
    Thank you for the link!! you make my life easy!! Thanks much !
  • r

    rp

    02/08/2022, 1:57 PM
    Happy to help πŸ™‚
  • u

    user

    02/08/2022, 5:14 PM
    The code here https://supertokens.com/docs/emailpassword/nextjs/init is shown only for typescript. I remember seeing both typescript & javascript till yesterday. Is the JS code example removed?
  • r

    rp

    02/08/2022, 5:15 PM
    @User yes. Cause it was getting really hard to make sure the code snippets were up to date with SDK changes. We we made them in TS. The JS version of them are very similar anyway, and can be found in the example app repo
  • l

    lyqht

    02/09/2022, 5:08 PM
    hello there, may I ask for supertokens-react-native SDK, I checked the docs & in the lib that are there no methods for creating user & signing in. Does that mean that if I want to perform these functions, then I have to call the APIs manually?
  • r

    rp

    02/09/2022, 5:18 PM
    Yes. Exactly.
  • r

    rp

    02/09/2022, 7:56 PM
    @User we are working on a pure JS SDK which will enable the react native SDK to expose helper functions for all recipes. This way, you won’t have to make API calls manually πŸ™‚
  • m

    mobob

    02/10/2022, 1:09 AM
    hi is it possible to retrieve the email of a logged in person in python flask backend? I know it is possible to do in nodejs but can't find documentation to do it in python
  • r

    rp

    02/10/2022, 3:32 AM
    @User yes. It would be possible. I can send you a link to the docs for that function if you tell me which recipe you are using
  • s

    shastri9999

    02/10/2022, 3:50 AM
    Hi, we have a React Native app which requires Social login, Email password as well as OTP login (passwordless). I was able to achieve email password with Social login, but unsure how to combine passwordless. Is there a way to do it? Can you please give some pointers?
  • r

    rp

    02/10/2022, 3:50 AM
    Hey @User ! Is passwordless login being used as a second factor here? Or an alternative to email / password login
Powered by Linen
Title
r

rp

02/10/2022, 3:50 AM
Hey @User ! Is passwordless login being used as a second factor here? Or an alternative to email / password login
View count: 2