---
title: Password managers
description: Ensure password managers detect authentication fields by disabling shadow DOM in your application.
sidebar:
  order: 90
---

## Overview

Styling encapsulation relies on the ["shadow DOM" browser feature](https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_shadow_DOM).
Password managers such as Dashlane, LastPass, or OnePassword do not detect authentication forms fields inside shadow DOMs.
Therefore, if you would like to make sure that your end users can use their password managers, you have to disable shadow DOM.

:::info[These instructions are only relevant if you are using the pre-built UI components.]
:::

<CodeGroup group="frontend-prebuilt-ui">
<Tab title="Reactjs" value="reactjs">
```tsx
import SuperTokens from "supertokens-auth-react";

SuperTokens.init({
  appInfo: {
    apiDomain: "...",
    appName: "...",
    websiteDomain: "...",
  },
  useShadowDom: false,
  recipeList: [
    /* ... */
  ],
});
```
</Tab>
<Tab title="Angular" value="angular">
```tsx check=false reason="This example omits surrounding application and SuperTokens configuration."
// this goes in the auth route config of your frontend app (once the pre-built UI script has been loaded)
supertokensUIInit({
  appInfo: {
    apiDomain: "...",
    appName: "...",
    websiteDomain: "...",
  },
  useShadowDom: false,
  recipeList: [
    /* ... */
  ],
});
```
</Tab>
</CodeGroup>


:::warning[- SuperTokens uses a special attribute to define its styling. Disabling shadow DOM should not impact the rest of your application's styles. Verify that your CSS does not impact how SuperTokens UI appears when disabling Shadow DOM.]
- Shadow DOM is always disabled with Internet Explorer since it does not support it. Similarly, if you intend to support Internet Explorer for your application make sure to verify how SuperTokens UI appears.
:::


## See also

<CardGroup cols={3}>
  <Card title="Password hashing" href="/authentication/email-password/password-hashing" />
  <Card title="Password reset" href="/authentication/email-password/password-reset" />
  <Card title="Customize the sign in form" href="/authentication/email-password/customize-the-sign-in-form" />
  <Card title="Customize the sign up form" href="/authentication/email-password/customize-the-sign-up-form" />
  <Card title="Hooks and overrides" href="/authentication/email-password/hooks-and-overrides" />
</CardGroup>
