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

    frederic

    07/02/2021, 11:47 AM
    I followed the following page
  • f

    frederic

    07/02/2021, 11:47 AM
    https://supertokens.io/docs/thirdpartyemailpassword/common-customizations/core/api-keys
  • f

    frederic

    07/02/2021, 11:47 AM
    and was able to add the api key to the core server
  • f

    frederic

    07/02/2021, 11:47 AM
    when I curl the version endpoint with the api key in the header
  • f

    frederic

    07/02/2021, 11:48 AM
    I get the expected response
  • f

    frederic

    07/02/2021, 11:48 AM
    the problem is the react node front end is not able to authenticate to the server when making requests
  • f

    frederic

    07/02/2021, 11:49 AM
    I am not sure where I am meant to add the api key in the 'backend' config
  • f

    frederic

    07/02/2021, 11:50 AM
    is there like an 'api-key' property under supertokens in the backendConfig?
  • r

    rp

    07/02/2021, 11:57 AM
    @User , yes, you can add the API key like this (on the backend):
    supertokens.init({
        supertokens: {
          connectionURI: "<CONNECTION URI HERE>",
          apiKey: "<API  KEY HERE>"
       },
       appInfo: {...},
       recipeList: [...]
    });
  • f

    frederic

    07/02/2021, 11:58 AM
    👍 Thanks very much for the quick response
  • z

    ZeferiniX

    07/07/2021, 12:20 PM
    just a small nitpick but maybe it shouldn't be ReactJS here, btw I appreciate the new API, it's cleaner imo 👌
  • r

    rp

    07/07/2021, 12:21 PM
    ah right!! You can actually contribute back to the docs: https://github.com/supertokens/docs
  • z

    ZeferiniX

    07/07/2021, 12:57 PM
    hmm, not familiar with docusaurus and I don't see any "reactjs" string either, what dictates that tab? xD https://raw.githubusercontent.com/supertokens/docs/master/emailpassword/docs/advanced-customizations/backend-functions-override/usage.md
  • r

    rp

    07/07/2021, 12:59 PM
    this is where to look: https://raw.githubusercontent.com/supertokens/docs/master/session/docs/advanced-customizations/backend-functions-override/usage.md
  • z

    ZeferiniX

    07/07/2021, 1:29 PM
    oh I was looking at the wrong recipe lol, mb
  • r

    rp

    07/07/2021, 1:29 PM
    haha.. no worries.
  • a

    anujchhabria

    07/12/2021, 3:32 PM
    hey @User was testing some apis in postman. it seems whenever i try to run a post api i receive the following response "try refresh token", but if i change the api to get there is no error and i get the appropriate response
  • a

    anujchhabria

    07/12/2021, 3:32 PM
    any idea what could be wrong?
  • r

    rp

    07/12/2021, 3:47 PM
    @User you need to do csrf ptotection for non-GET APIs.
  • a

    anujchhabria

    07/13/2021, 10:42 AM
    Came across a strange issue on supertokens-website 4.4.x
  • a

    anujchhabria

    07/13/2021, 10:43 AM
    when i run doesSessionExist() it returns true, but when i run getUserId() it throws the error "No session exists"
  • a

    anujchhabria

    07/13/2021, 10:43 AM
    Using on nuxt
  • a

    anujchhabria

    07/13/2021, 10:57 AM
    Noticed only these cookies are being set - sAntiCsrf and sIRTFrontend
  • r

    rp

    07/13/2021, 1:20 PM
    Hey @anujchhabria, as discussed, please check the compatibility table for the versions of the two SDKs you are using.
  • k

    Konstantin

    07/13/2021, 1:35 PM
    Hi, I want to customize the password reset email as described here: https://supertokens.io/docs/emailpassword/common-customizations/reset-password/password-reset-email However, when providing the function "createAndSendCustomEmail" I get the following error:
    Type '{ createAndSendCustomEmail: (user: any, passwordResetURLWithToken: any) => Promise<void>; }' is not assignable to type 'ResetPasswordUsingTokenUserInput'.
    Any ideas on how to solve this? Thanks a lot in advance!
  • r

    rp

    07/13/2021, 1:43 PM
    hey @User , Can you paste your node js supertokens.init config?
  • k

    Konstantin

    07/13/2021, 1:45 PM
    message has been deleted
  • r

    rp

    07/13/2021, 1:48 PM
    so the
    resetPasswordUsingTokenFeature
    is a backend config
  • r

    rp

    07/13/2021, 1:48 PM
    It should go in the nodeJS layer
  • r

    rp

    07/13/2021, 1:48 PM
    not in the reactJS app
Powered by Linen
Title
r

rp

07/13/2021, 1:48 PM
not in the reactJS app
View count: 2