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

# waitForAuth

<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/session.ts](https://github.com/nottelabs/notte/blob/main/node-sdk/src/session.ts)

Wait for this session to become usable without creating a session or submitting another login.
A standalone wait leaves session ownership with the caller, including on timeout or cancellation.

```typescript theme={null}
Session.waitForAuth(options?: AuthWaitOptions): Promise<void>;
```

## Parameters

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

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

## Returns

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

## Related types

* [AuthWaitOptions](/typescript-sdk-reference/types/authwaitoptions)


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