---
title: "SDK: auth"
description: "The auth methods of the Overlane TypeScript SDK, with their signatures. Generated from the SDK types."
---

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

# SDK: auth

{/* Generated by apps/docs/scripts/generate.mjs (SDK pages from the TypeScript types in packages/sdk). Do not edit; run `pnpm --filter @overlane/docs gen`. */}

The `auth` area has 2 methods on the client. Each takes one object of path, query and body arguments and an optional `CallOptions`, and returns a promise of the response body. A refused call rejects with `OverlaneApiError` (see the [SDK index](/sdk/)).

## authLogout

End the CLI session that makes the call

- Request: `POST` on `/v1/auth/logout`

```ts
authLogout(args?: { body?: Record<string, unknown> }, options?: CallOptions): Promise<Record<string, unknown>>
```

## authSwitch

Act in another team you belong to (a person does this)

- Request: `POST` on `/v1/auth/switch`

```ts
authSwitch(args: { body: SwitchTeamRequest }, options?: CallOptions): Promise<Record<string, unknown>>
```

Source: https://docs.overlane.app/sdk/auth/index.mdx
