I'm trying to customize the look of the supertokens sign in button. In the docs it shows this code w...
f
I'm trying to customize the look of the supertokens sign in button. In the docs it shows this code which I've implemented. I'm assuming this goes in "frontendConfig". It's not working. What am I missing? Here's the short code in frontendConfig:
Copy code
return {
    appInfo,
    recipeList: [
      EmailPasswordReact.init({
        style: `[data-supertokens~=button] {
                    background-color: #ff0000;
                    border: 0px;
                    width: 30%;
                    margin: 0 auto;
                }`,
        getRedirectionURL: async (context) => {
r
hey @funk101 which version of the frontend SDK are you using?
f
"supertokens-auth-react": "^0.27.3", "supertokens-node": "^12.1.1",
r
right. The code snippet you see if for a newer version of the frontend SDK. For older versions, You need to use this: https://github.com/supertokens/docs/blob/f7fed90ff3321b1b000330bec62804da46c72adc/v2/emailpassword/common-customizations/styling/changing-style.mdx
f
got it thanks
4 Views