Which UI do you use?
Custom UI
Pre built UI
Disable use of shadow DOM
We use Shadow DOM to prevent CSS clashes between your CSS and the ones we provide. This guarantees that all our UI will render as expected.
However, this has a few problems:
- You cannot override our CSS using your CSS (though you can use JS to do that).
- Password managers may not work for your end user.
If you want to disable use of shadow dom, you can do so like:
- ReactJS
- Angular
- Vue
// this goes in the auth route config of your frontend app (once the pre built UI script has been loaded)
supertokensUIInit("supertokensui", {
appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
},
useShadowDom: false,
recipeList: [/* ... */]
});
import SuperTokens from "supertokens-auth-react";
SuperTokens.init({
appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
},
useShadowDom: false,
recipeList: [/* ... */]
});
// this goes in the auth route config of your frontend app (once the pre built UI script has been loaded)
supertokensUIInit("supertokensui", {
appInfo: {
apiDomain: "...",
appName: "...",
websiteDomain: "..."
},
useShadowDom: false,
recipeList: [/* ... */]
});
caution
If disabled, please be sure to check that our components render correctly - because your CSS might affect our components' UI (the other way around won't happen).