---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../modules.md) / [auth](../index.md) / InstanceAuthSession

# Interface: InstanceAuthSession

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:32](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L32)

A stored session that the instance configuration can use.

## Properties

### accessTokenExpiresAt?

> `optional` **accessTokenExpiresAt**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:40](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L40)

Access-token expiry (ISO timestamp), when it can be read.

***

### accessTokenValid

> **accessTokenValid**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:42](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L42)

Whether the access token is still valid.

***

### builtInClient

> **builtInClient**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:35](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L35)

Whether this is the toolkit's built-in public client.

***

### canRefresh

> **canRefresh**: `boolean`

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:44](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L44)

Whether an expired access token is renewed silently (PKCE refresh token).

***

### clientId

> **clientId**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:33](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L33)

***

### flow

> **flow**: [`AuthSessionFlow`](../type-aliases/AuthSessionFlow.md)

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:36](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L36)

***

### lastUsedAt?

> `optional` **lastUsedAt**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:45](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L45)

***

### scopes?

> `optional` **scopes**: `string`[]

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:47](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L47)

Scopes recorded with the access token.

***

### usedFor

> **usedFor**: [`InstanceAuthTarget`](../type-aliases/InstanceAuthTarget.md)[]

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:49](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L49)

Request types the session serves with this configuration.

***

### user?

> `optional` **user**: `string`

Defined in: [packages/b2c-tooling-sdk/src/auth/instance-auth.ts:38](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/b7ec7d4a1464ef7bbb6a5757ffd6f99a18a31bf6/packages/b2c-tooling-sdk/src/auth/instance-auth.ts#L38)

Account Manager user (JWT `sub`), when recorded.
