> ## Documentation Index
> Fetch the complete documentation index at: https://docs.notte.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Get started

<Tip>
  Read [the Notte skill](https://notte.cc/skill.md) and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
</Tip>

[Source: node-sdk/src/managed-auth.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/managed-auth.ts)

Connection verification and recovery through `client.managedAuth`.

```typescript theme={null}
const operation = await client.managedAuth.refreshConnection("<connection-id>", { wait: false });
await client.managedAuth.waitForAuth(operation);
```

```typescript theme={null}
import { NotteManagedAuth } from 'notte-sdk';
```

```typescript theme={null}
new NotteManagedAuth(client: NotteClient): NotteManagedAuth;
```

<ParamField body="client" type={"NotteClient"} required />

## Usage

* [checkConnection](/typescript-sdk-reference/nottemanagedauth/checkconnection): Run only the verifier; this does not submit login credentials.
* [getOperation](/typescript-sdk-reference/nottemanagedauth/getoperation)
* [waitForAuth](/typescript-sdk-reference/nottemanagedauth/waitforauth): Wait for an accepted operation. Aborting this wait does not cancel the server operation.
* [refreshConnection](/typescript-sdk-reference/nottemanagedauth/refreshconnection): Verify first, logging in only when required and automatic recovery is allowed.
* [reauthenticateConnection](/typescript-sdk-reference/nottemanagedauth/reauthenticateconnection): Explicitly request a new login. Conflicting operations remain HTTP 409 errors.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.