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

    kevin.a

    12/22/2020, 12:42 PM
    Got it!
  • k

    kevin.a

    12/22/2020, 12:47 PM
    In order to solve the issue with using
    supertokens-react-theme
    locally inside another repo such as
    supertokens-demo-react
    , you will have to remove conflicting modules when running locally. Note that this issue is only happening in local environment. That's why it's recommended to simply run
    npm run start
    when you want to modify a theme, and then from your project, reference the remote package (on github or npm) after you have made your changes. Does that make sense?
  • c

    cp

    12/22/2020, 2:35 PM
    I'll give it a shot, thank you for your help.
  • d

    dbMI

    12/25/2020, 9:38 PM
    Is there a doc to change background color of reset your password email button?
  • r

    rp

    12/26/2020, 3:12 AM
    Yes. Have you seen https://test.supertokens.io/docs/emailpassword/common-customizations/styling/changing-style
  • d

    dbMI

    12/26/2020, 3:40 AM
    Yes.
  • d

    dbMI

    12/26/2020, 3:40 AM
    I have tried:
  • d

    dbMI

    12/26/2020, 3:40 AM
    resetPasswordUsingTokenFeature: { submitNewPasswordForm: { style: { button: { backgroundColor: "#0B72B9", width: "30%", margin: "0 auto", }, }, }, }, },
  • d

    dbMI

    12/26/2020, 3:41 AM
    But no luck. 😦
  • d

    dbMI

    12/26/2020, 4:04 AM
    I have also tried:
  • d

    dbMI

    12/26/2020, 4:04 AM
    resetPasswordUsingTokenFeature: { sendEmailForm: { style: { button: { backgroundColor: "#0B72B9", width: "30%", margin: "0 auto", }, }, }, },
  • r

    rp

    12/26/2020, 4:10 AM
    Okay thanks. I’ll have a look and get back soon
  • r

    rp

    12/26/2020, 7:57 AM
    hey @User I got it to work just fine with the below code. It changes the style of the button for the sign up, sign in, reset password (enter email form), reset password (submit new password form). The below is in the frontend code:
    EmailPassword.init({
          signInAndUpFeature: {
            signUpForm: {
              style: {
                button: {
                  backgroundColor: "#0B72B9",
                  width: "30%",
                  margin: "0 auto",
                }
              }
            },
            signInForm: {
              style: {
                button: {
                  backgroundColor: "#0B72B9",
                  width: "30%",
                  margin: "0 auto",
                }
              }
            }
          },
          resetPasswordUsingTokenFeature: {
            enterEmailForm: {
              style: {
                button: {
                  backgroundColor: "#0B72B9",
                  width: "30%",
                  margin: "0 auto",
                }
              }
            },
            submitNewPasswordForm: {
              style: {
                button: {
                  backgroundColor: "#0B72B9",
                  width: "30%",
                  margin: "0 auto",
                }
              }
            }
          }
        }),
  • r

    rp

    12/26/2020, 7:58 AM
    message has been deleted
  • r

    rp

    12/26/2020, 7:58 AM
    message has been deleted
  • d

    dbMI

    12/26/2020, 1:42 PM
    Ok. Thanks
  • d

    dbMI

    12/26/2020, 1:43 PM
    I guess I need both the enterEmailFrom AND the submitNewPasswordForm. I had only tried each of them separately, not both at once.
  • r

    rp

    12/26/2020, 1:43 PM
    Actually you shouldn't need both
  • r

    rp

    12/26/2020, 1:44 PM
    But try with both, if that works, and then remove one and it stops working, then we can create an issue about it
  • d

    dbMI

    12/26/2020, 1:47 PM
    Ok. With both it works. When I remove the submitNewPasswordForm block it still works. So not sure what that block pertains to.
  • d

    dbMI

    12/26/2020, 1:47 PM
    but thanks for the assist
  • r

    rp

    12/26/2020, 1:47 PM
    submitNewPasswordForm pertains to the form that shows up when the user clicks on the link they get in their email.
  • d

    dbMI

    12/26/2020, 1:48 PM
    Is there a way to customize the /auth page futher? i.e. add new text? perhaps a header above the signin block?
  • d

    dbMI

    12/26/2020, 1:48 PM
    also does the route have to be /auth? can that be changed to something else?
  • r

    rp

    12/26/2020, 1:48 PM
    You can see that form by going to
    http://localhost:9001/auth/reset-password?rid=emailpassword&token=TOKEN
    (change the port based on your dev env)
  • r

    rp

    12/26/2020, 1:50 PM
    > Is there a way to customize the /auth page futher? i.e. add new text? perhaps a header above the signin block? Yes. You can embed the login page into an existing page, or create a new one from scratch. See https://supertokens.io/docs/emailpassword/common-customizations/styling/themes > also does the route have to be /auth? can that be changed to something else? Yes. See https://supertokens.io/docs/emailpassword/common-customizations/changing-base-path/website-base-path and https://supertokens.io/docs/emailpassword/common-customizations/changing-base-path/api-base-path
  • d

    dbMI

    12/26/2020, 1:50 PM
    ok. thanks
  • d

    dbMI

    12/26/2020, 1:52 PM
    Is there a master list with all the API options in instead of searching/reading through the various help pages?
  • r

    rp

    12/26/2020, 1:53 PM
    When you say API options, do you mean the various config options that you can give to the init function? Or something else?
  • d

    dbMI

    12/26/2020, 1:58 PM
    yes the config options.
Powered by Linen
Title
d

dbMI

12/26/2020, 1:58 PM
yes the config options.
View count: 1