> ## Documentation Index
> Fetch the complete documentation index at: https://fastmcp-ts.docs.prefect.io/llms.txt
> Use this file to discover all available pages before exploring further.

# LocalStorageStore

Defined in: [client/browser-stores.ts:15](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L15)

KeyValueStore backed by `localStorage`. Synchronous and simple; suitable for
OAuth tokens and client registration state in single-page apps. Keys are
namespaced by a prefix to avoid collisions with other app state.

## Implements

* [`KeyValueStore`](/api/client/type-aliases/KeyValueStore)

## Constructors

### Constructor

```ts theme={null}
new LocalStorageStore(prefix?): LocalStorageStore;
```

Defined in: [client/browser-stores.ts:18](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L18)

#### Parameters

##### prefix?

`string` = `'fastmcp:'`

#### Returns

`LocalStorageStore`

## Methods

### delete()

```ts theme={null}
delete(key): Promise<void>;
```

Defined in: [client/browser-stores.ts:30](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L30)

#### Parameters

##### key

`string`

#### Returns

`Promise`\<`void`>

#### Implementation of

```ts theme={null}
KeyValueStore.delete
```

***

### get()

```ts theme={null}
get(key): Promise<string | null>;
```

Defined in: [client/browser-stores.ts:22](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L22)

#### Parameters

##### key

`string`

#### Returns

`Promise`\<`string` | `null`>

#### Implementation of

```ts theme={null}
KeyValueStore.get
```

***

### set()

```ts theme={null}
set(key, value): Promise<void>;
```

Defined in: [client/browser-stores.ts:26](https://github.com/PrefectHQ/fastmcp-ts/blob/e4b6038f642b529f601463a576229747afebe9a4/src/client/browser-stores.ts#L26)

#### Parameters

##### key

`string`

##### value

`string`

#### Returns

`Promise`\<`void`>

#### Implementation of

```ts theme={null}
KeyValueStore.set
```
