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

## Type Aliases

### InputType

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

Defined in: [tmp/supertokens-web-js/lib/ts/recipe/session/types.ts:50](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/recipe/session/types.ts#L50)

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `appInfo` | [`NormalisedAppInfo`](types#normalisedappinfo) | [tmp/supertokens-web-js/lib/ts/recipe/session/types.ts:52](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/recipe/session/types.ts#L52) |
| `enableDebugLogs` | `boolean` | [tmp/supertokens-web-js/lib/ts/recipe/session/types.ts:53](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/recipe/session/types.ts#L53) |
| `recipeId` | `string` | [tmp/supertokens-web-js/lib/ts/recipe/session/types.ts:51](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/recipe/session/types.ts#L51) |

***

### RecipeEvent

```ts check=false reason="Generated API signature"
type RecipeEvent = 
  | {
  action:   | "SIGN_OUT"
     | "REFRESH_SESSION"
     | "SESSION_CREATED"
     | "ACCESS_TOKEN_PAYLOAD_UPDATED"
     | "SESSION_ALREADY_EXISTS";
  userContext: any;
}
  | {
  action: "API_INVALID_CLAIM";
  claimValidationErrors: ClaimValidationError[];
  userContext: any;
}
  | {
  action: "UNAUTHORISED";
  sessionExpiredOrRevoked: boolean;
  userContext: any;
};
```

Defined in: [tmp/supertokens-web-js/lib/ts/recipe/session/types.ts:22](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/recipe/session/types.ts#L22)

***

### RecipeInterface

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

Defined in: [tmp/supertokens-web-js/lib/ts/recipe/session/types.ts:48](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/recipe/session/types.ts#L48)

***

### UserInput

```ts check=false reason="Generated API signature"
type UserInput = Omit<WebsiteInputType, 
  | "apiDomain"
  | "apiBasePath"
  | "enableDebugLogs"
  | "cookieHandler"
| "windowHandler">;
```

Defined in: [tmp/supertokens-web-js/lib/ts/recipe/session/types.ts:43](https://github.com/supertokens/supertokens-web-js/blob/be2e0fd7dcade8352cdc9639abe968e5cda5b1cd/lib/ts/recipe/session/types.ts#L43)
