---
meta:
 - name: keywords
   description: api typescript node.js documentation OS2SecurityOAuth interface
---
# OS2SecurityOAuth - @tsed/openspec

## Usage

```typescript
import { OS2SecurityOAuth } from "@tsed/openspec";
```

> See [/packages/specs/openspec/src/openspec2/OS2Security.ts](https://github.com/tsedio/tsed/blob/v8.27.0/packages/specs/openspec/src/openspec2/OS2Security.ts#L0-L0).

## Overview

```ts
interface OS2SecurityOAuth extends OS2SecurityBase {
    type: "oauth2";
    flow: "accessCode" | "application" | "implicit" | "password";
    scopes: OpenSpecHash<string>;
}
```

<!-- Members -->

## type

```ts
type: "oauth2";
```

## flow

```ts
flow: "accessCode" | "application" | "implicit" | "password";
```

## scopes

```ts
scopes: OpenSpecHash<string>;
```

The available scopes for the OAuth2 security scheme.
