> ## 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.

# refreshConnection

<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)

Verify first, logging in only when required and automatic recovery is allowed.

```typescript theme={null}
NotteManagedAuth.refreshConnection(connectionId: string, options?: ManagedAuthRunOptions): Promise<ManagedAuthOperation>;
```

## Parameters

<ParamField body="connectionId" type={"string"} required />

<ParamField body="options" type={"ManagedAuthRunOptions"}>
  Default:

  ```typescript theme={null}
  {}
  ```
</ParamField>

## Returns

```typescript theme={null}
Promise<ManagedAuthOperation>
```

## Related types

* [ManagedAuthOperation](/typescript-sdk-reference/types/managedauthoperation)
* [ManagedAuthRunOptions](/typescript-sdk-reference/types/managedauthrunoptions)


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