# PersistSessionStorage

<!-- https://uncage.vercel.app/docs/api/react/type-aliases/persistsessionstorage/ -->

```ts
type PersistSessionStorage = object;
```

Defined in: react/src/hooks.ts:314

A storage adapter (AsyncStorage, SecureStore, MMKV, …) for apps without `window.location`
or `localStorage` (React Native).

## Methods

### get()

```ts
get(): 
  | string
  | Promise<string | null | undefined>
  | null
  | undefined;
```

Defined in: react/src/hooks.ts:315

#### Returns

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

***

### set()

```ts
set(id): void | Promise<void>;
```

Defined in: react/src/hooks.ts:316

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `id` | `string` \| `undefined` |

#### Returns

`void` \| `Promise`\<`void`\>
