# Interface OAuth2Auth

Represents credential value and its metadata for a OAuth2 credential.

interface OAuth2Auth {
accessToken?: string;
authCode?: string;
authResponseUri?: string;
authUri?: string;
clientId?: string;
clientSecret?: string;
expiresAt?: number;
expiresIn?: number;
redirectUri?: string;
refreshToken?: string;
state?: string;
}

- Defined in auth/auth_credential.ts:34

## Properties

### `Optional` accessToken

accessToken?: string

- Defined in auth/auth_credential.ts:49

### `Optional` authCode

authCode?: string

- Defined in auth/auth_credential.ts:48

### `Optional` authResponseUri

authResponseUri?: string

- Defined in auth/auth_credential.ts:47

### `Optional` authUri

authUri?: string

tool or adk can generate the authUri with the state info thus client can verify the state

- Defined in auth/auth_credential.ts:41

### `Optional` clientId

clientId?: string

- Defined in auth/auth_credential.ts:35

### `Optional` clientSecret

clientSecret?: string

- Defined in auth/auth_credential.ts:36

### `Optional` expiresAt

expiresAt?: number

- Defined in auth/auth_credential.ts:51

### `Optional` expiresIn

expiresIn?: number

- Defined in auth/auth_credential.ts:52

### `Optional` redirectUri

redirectUri?: string

tool or adk can decide the redirect_uri if they don't want client to decide

- Defined in auth/auth_credential.ts:46

### `Optional` refreshToken

refreshToken?: string

- Defined in auth/auth_credential.ts:50

### `Optional` state

state?: string

- Defined in auth/auth_credential.ts:42