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
- Plain JavaScript
- React Native
Note
You can use the
You can refer to this example app as a reference for using the
supertokens-web-js
SDK which exposes several helper functions that query the APIs exposed by the SuperTokens backend SDK.You can refer to this example app as a reference for using the
supertokens-web-js
SDK.Note
To use SuperTokens with React Native you need to use the
To add login functionality, you need to build your own UI and call the APIs exposed by the backend SDKs. You can find the API spec here
supertokens-react-native
SDK. The SDK provides session management features.To add login functionality, you need to build your own UI and call the APIs exposed by the backend SDKs. You can find the API spec here
What type of UI are you using?
Prebuilt UICustom UI
What type of UI are you using?
Prebuilt UICustom UI
import SuperTokens from "supertokens-auth-react";import EmailPassword from "supertokens-auth-react/recipe/emailpassword";import Session from "supertokens-auth-react/recipe/session";
SuperTokens.init({ appInfo: { apiDomain: "...", appName: "...", websiteDomain: "..." }, recipeList: [ EmailPassword.init({ useShadowDom: false }), Session.init() ]});
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).