---
title: supertokens-auth-react/recipe/session/types
description: References documentation for the supertokens-auth-react/recipe/session/types package
sidebar:
  order: 160
---

## Type Aliases

### AccessDeniedThemeProps

```ts check=false reason="Generated API signature"
type AccessDeniedThemeProps = object;
```

Defined in: [recipe/session/types.ts:65](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L65)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="config"></a> `config` | [`NormalisedSessionConfig`](#normalisedsessionconfig) | [recipe/session/types.ts:72](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L72) |
| <a id="error"></a> `error?` | `string` | [recipe/session/types.ts:70](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L70) |
| <a id="navigate"></a> `navigate` | [`Navigate`](types#navigate) | [recipe/session/types.ts:71](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L71) |
| <a id="recipe"></a> `recipe` | [`SuperTokensWrapper`](index#supertokenswrapper-1) | [recipe/session/types.ts:66](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L66) |

***

### ComponentOverrideMap

```ts check=false reason="Generated API signature"
type ComponentOverrideMap = object;
```

Defined in: [recipe/session/types.ts:75](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L75)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="sessionaccessdenied_override"></a> `SessionAccessDenied_Override?` | `ComponentOverride`\<*typeof* [`SuperTokensWrapper`](index#supertokenswrapper-1)\> | [recipe/session/types.ts:76](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L76) |

***

### InputType

```ts check=false reason="Generated API signature"
type InputType = SuperTokensWrapper & object;
```

Defined in: [recipe/session/types.ts:28](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L28)

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `accessDeniedScreen?` | [`SessionFeatureBaseConfig`](#sessionfeaturebaseconfig) | [recipe/session/types.ts:30](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L30) |
| `onHandleEvent()?` | (`event`) => `void` | [recipe/session/types.ts:31](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L31) |
| `style?` | `string` | [recipe/session/types.ts:29](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L29) |

***

### LoadedSessionContext

```ts check=false reason="Generated API signature"
type LoadedSessionContext = object & SessionContextUpdate;
```

Defined in: [recipe/session/types.ts:53](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L53)

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `accessDeniedValidatorError?` | [`SuperTokensWrapper`](index#supertokenswrapper-1) | [recipe/session/types.ts:56](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L56) |
| `invalidClaims` | [`SuperTokensWrapper`](index#supertokenswrapper-1)[] | [recipe/session/types.ts:55](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L55) |
| `loading` | `false` | [recipe/session/types.ts:54](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L54) |

***

### NormalisedSessionConfig

```ts check=false reason="Generated API signature"
type NormalisedSessionConfig = NormalisedConfig<unknown, any, any> & object;
```

Defined in: [recipe/session/types.ts:34](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L34)

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `accessDeniedScreen` | [`NormalisedBaseConfig`](types#normalisedbaseconfig) | [recipe/session/types.ts:36](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L36) |
| `invalidClaimStatusCode` | `number` | [recipe/session/types.ts:35](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L35) |
| `override` | `object` | [recipe/session/types.ts:37](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L37) |
| `override.functions()` | (`originalImplementation`, `builder`) => [`SuperTokensWrapper`](index#supertokenswrapper-1) | [recipe/session/types.ts:38](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L38) |

***

### RecipeEventWithSessionContext

```ts check=false reason="Generated API signature"
type RecipeEventWithSessionContext = SuperTokensWrapper & object;
```

Defined in: [recipe/session/types.ts:26](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L26)

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `sessionContext` | [`SessionContextUpdate`](#sessioncontextupdate) | [recipe/session/types.ts:26](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L26) |

***

### SessionContextType

```ts check=false reason="Generated API signature"
type SessionContextType = 
  | LoadedSessionContext
  | {
  loading: true;
};
```

Defined in: [recipe/session/types.ts:59](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L59)

***

### SessionContextUpdate

```ts check=false reason="Generated API signature"
type SessionContextUpdate = object;
```

Defined in: [recipe/session/types.ts:47](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L47)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="accesstokenpayload"></a> `accessTokenPayload` | `any` | [recipe/session/types.ts:50](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L50) |
| <a id="doessessionexist"></a> `doesSessionExist` | `boolean` | [recipe/session/types.ts:48](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L48) |
| <a id="userid"></a> `userId` | `string` | [recipe/session/types.ts:49](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L49) |

***

### SessionFeatureBaseConfig

```ts check=false reason="Generated API signature"
type SessionFeatureBaseConfig = FeatureBaseConfig;
```

Defined in: [recipe/session/types.ts:45](https://github.com/supertokens/supertokens-auth-react/blob/b337b23722adfbe2906b193ea5fcf98f9c98c8b0/lib/ts/recipe/session/types.ts#L45)
