---
title: supertokens-node/recipe/passwordless/types
description: References documentation for the supertokens-node/recipe/passwordless/types package
sidebar:
  order: 60
---

## Type Aliases

### APIInterface

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

Defined in: [recipe/passwordless/types.ts:335](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L335)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="consumecodepost"></a> `consumeCodePOST?` | (`input`) => `Promise`\< \| \{ `createdNewRecipeUser`: `boolean`; `session`: `SessionContainerInterface`; `status`: `"OK"`; `user`: [`User`](types#user); \} \| \{ `failedCodeInputAttemptCount`: `number`; `maximumCodeInputAttempts`: `number`; `status`: `"INCORRECT_USER_INPUT_CODE_ERROR"` \| `"EXPIRED_USER_INPUT_CODE_ERROR"`; \} \| \{ `status`: `"RESTART_FLOW_ERROR"`; \} \| \{ `reason`: `string`; `status`: `"SIGN_IN_UP_NOT_ALLOWED"`; \} \| [`GeneralErrorResponse`](types#generalerrorresponse)\> | [recipe/passwordless/types.ts:368](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L368) |
| <a id="createcodepost"></a> `createCodePOST?` | (`input`) => `Promise`\< \| \{ `deviceId`: `string`; `flowType`: `"USER_INPUT_CODE"` \| `"MAGIC_LINK"` \| `"USER_INPUT_CODE_AND_MAGIC_LINK"`; `preAuthSessionId`: `string`; `status`: `"OK"`; \} \| \{ `reason`: `string`; `status`: `"SIGN_IN_UP_NOT_ALLOWED"`; \} \| [`GeneralErrorResponse`](types#generalerrorresponse)\> | [recipe/passwordless/types.ts:336](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L336) |
| <a id="emailexistsget"></a> `emailExistsGET?` | (`input`) => `Promise`\< \| \{ `exists`: `boolean`; `status`: `"OK"`; \} \| [`GeneralErrorResponse`](types#generalerrorresponse)\> | [recipe/passwordless/types.ts:406](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L406) |
| <a id="phonenumberexistsget"></a> `phoneNumberExistsGET?` | (`input`) => `Promise`\< \| \{ `exists`: `boolean`; `status`: `"OK"`; \} \| [`GeneralErrorResponse`](types#generalerrorresponse)\> | [recipe/passwordless/types.ts:419](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L419) |
| <a id="resendcodepost"></a> `resendCodePOST?` | (`input`) => `Promise`\< \| [`GeneralErrorResponse`](types#generalerrorresponse) \| \{ `status`: `"RESTART_FLOW_ERROR"` \| `"OK"`; \}\> | [recipe/passwordless/types.ts:358](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L358) |

***

### APIOptions

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

Defined in: [recipe/passwordless/types.ts:323](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L323)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="appinfo"></a> `appInfo` | [`NormalisedAppinfo`](types#normalisedappinfo) | [recipe/passwordless/types.ts:325](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L325) |
| <a id="config"></a> `config` | [`TypeNormalisedInput`](#typenormalisedinput) | [recipe/passwordless/types.ts:326](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L326) |
| <a id="emaildelivery"></a> `emailDelivery` | `EmailDeliveryIngredient`\<[`TypePasswordlessEmailDeliveryInput`](#typepasswordlessemaildeliveryinput)\> | [recipe/passwordless/types.ts:331](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L331) |
| <a id="isinserverlessenv"></a> `isInServerlessEnv` | `boolean` | [recipe/passwordless/types.ts:328](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L328) |
| <a id="recipeid"></a> `recipeId` | `string` | [recipe/passwordless/types.ts:327](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L327) |
| <a id="recipeimplementation"></a> `recipeImplementation` | [`RecipeInterface`](#recipeinterface) | [recipe/passwordless/types.ts:324](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L324) |
| <a id="req"></a> `req` | `BaseRequest` | [recipe/passwordless/types.ts:329](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L329) |
| <a id="res"></a> `res` | `BaseResponse` | [recipe/passwordless/types.ts:330](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L330) |
| <a id="smsdelivery"></a> `smsDelivery` | `SmsDeliveryIngredient`\<[`TypePasswordlessSmsDeliveryInput`](#typepasswordlesssmsdeliveryinput)\> | [recipe/passwordless/types.ts:332](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L332) |

***

### DeviceType

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

Defined in: [recipe/passwordless/types.ts:308](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L308)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="codes"></a> `codes` | `object`[] | [recipe/passwordless/types.ts:316](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L316) |
| <a id="email"></a> `email?` | `string` | [recipe/passwordless/types.ts:313](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L313) |
| <a id="failedcodeinputattemptcount"></a> `failedCodeInputAttemptCount` | `number` | [recipe/passwordless/types.ts:311](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L311) |
| <a id="phonenumber"></a> `phoneNumber?` | `string` | [recipe/passwordless/types.ts:314](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L314) |
| <a id="preauthsessionid"></a> `preAuthSessionId` | `string` | [recipe/passwordless/types.ts:309](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L309) |

***

### RecipeInterface

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

Defined in: [recipe/passwordless/types.ts:110](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L110)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="checkcode"></a> `checkCode` | (`input`) => `Promise`\< \| \{ `consumedDevice`: \{ `email?`: `string`; `failedCodeInputAttemptCount`: `number`; `phoneNumber?`: `string`; `preAuthSessionId`: `string`; \}; `status`: `"OK"`; \} \| \{ `failedCodeInputAttemptCount`: `number`; `maximumCodeInputAttempts`: `number`; `status`: `"INCORRECT_USER_INPUT_CODE_ERROR"` \| `"EXPIRED_USER_INPUT_CODE_ERROR"`; \} \| \{ `status`: `"RESTART_FLOW_ERROR"`; \}\> | [recipe/passwordless/types.ts:203](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L203) |
| <a id="consumecode"></a> `consumeCode` | (`input`) => `Promise`\< \| \{ `consumedDevice`: \{ `email?`: `string`; `failedCodeInputAttemptCount`: `number`; `phoneNumber?`: `string`; `preAuthSessionId`: `string`; \}; `createdNewRecipeUser`: `boolean`; `recipeUserId`: [`RecipeUserId`](index#recipeuserid-1); `status`: `"OK"`; `user`: [`User`](types#user); \} \| \{ `failedCodeInputAttemptCount`: `number`; `maximumCodeInputAttempts`: `number`; `status`: `"INCORRECT_USER_INPUT_CODE_ERROR"` \| `"EXPIRED_USER_INPUT_CODE_ERROR"`; \} \| \{ `status`: `"RESTART_FLOW_ERROR"`; \} \| \{ `reason`: \| `"EMAIL_VERIFICATION_REQUIRED"` \| `"RECIPE_USER_ID_ALREADY_LINKED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"` \| `"ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"` \| `"SESSION_USER_ACCOUNT_INFO_ALREADY_ASSOCIATED_WITH_ANOTHER_PRIMARY_USER_ID_ERROR"`; `status`: `"LINKING_TO_SESSION_USER_FAILED"`; \}\> | [recipe/passwordless/types.ts:155](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L155) |
| <a id="createcode"></a> `createCode` | (`input`) => `Promise`\<\{ `codeId`: `string`; `codeLifetime`: `number`; `deviceId`: `string`; `linkCode`: `string`; `preAuthSessionId`: `string`; `status`: `"OK"`; `timeCreated`: `number`; `userInputCode`: `string`; \}\> | [recipe/passwordless/types.ts:111](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L111) |
| <a id="createnewcodefordevice"></a> `createNewCodeForDevice` | (`input`) => `Promise`\< \| \{ `codeId`: `string`; `codeLifetime`: `number`; `deviceId`: `string`; `linkCode`: `string`; `preAuthSessionId`: `string`; `status`: `"OK"`; `timeCreated`: `number`; `userInputCode`: `string`; \} \| \{ `status`: `"RESTART_FLOW_ERROR"` \| `"USER_INPUT_CODE_ALREADY_USED_ERROR"`; \}\> | [recipe/passwordless/types.ts:137](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L137) |
| <a id="listcodesbydeviceid"></a> `listCodesByDeviceId` | (`input`) => `Promise`\<[`DeviceType`](#devicetype) \| `undefined`\> | [recipe/passwordless/types.ts:295](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L295) |
| <a id="listcodesbyemail"></a> `listCodesByEmail` | (`input`) => `Promise`\<[`DeviceType`](#devicetype)[]\> | [recipe/passwordless/types.ts:287](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L287) |
| <a id="listcodesbyphonenumber"></a> `listCodesByPhoneNumber` | (`input`) => `Promise`\<[`DeviceType`](#devicetype)[]\> | [recipe/passwordless/types.ts:289](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L289) |
| <a id="listcodesbypreauthsessionid"></a> `listCodesByPreAuthSessionId` | (`input`) => `Promise`\<[`DeviceType`](#devicetype) \| `undefined`\> | [recipe/passwordless/types.ts:301](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L301) |
| <a id="revokeallcodes"></a> `revokeAllCodes` | (`input`) => `Promise`\<\{ `status`: `"OK"`; \}\> | [recipe/passwordless/types.ts:255](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L255) |
| <a id="revokecode"></a> `revokeCode` | (`input`) => `Promise`\<\{ `status`: `"OK"`; \}\> | [recipe/passwordless/types.ts:271](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L271) |
| <a id="updateuser"></a> `updateUser` | (`input`) => `Promise`\< \| \{ `status`: \| `"OK"` \| `"UNKNOWN_USER_ID_ERROR"` \| `"EMAIL_ALREADY_EXISTS_ERROR"` \| `"PHONE_NUMBER_ALREADY_EXISTS_ERROR"`; \} \| \{ `reason`: `string`; `status`: \| `"EMAIL_CHANGE_NOT_ALLOWED_ERROR"` \| `"PHONE_NUMBER_CHANGE_NOT_ALLOWED_ERROR"`; \}\> | [recipe/passwordless/types.ts:236](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L236) |

***

### TypeInput

```ts check=false reason="Generated API signature"
type TypeInput = 
  | {
  contactMethod: "PHONE";
  validatePhoneNumber?: (phoneNumber, tenantId) => Promise<string | undefined> | string | undefined;
}
  | {
  contactMethod: "EMAIL";
  validateEmailAddress?: (email, tenantId) => Promise<string | undefined> | string | undefined;
}
  | {
  contactMethod: "EMAIL_OR_PHONE";
  validateEmailAddress?: (email, tenantId) => Promise<string | undefined> | string | undefined;
  validatePhoneNumber?: (phoneNumber, tenantId) => Promise<string | undefined> | string | undefined;
} & object;
```

Defined in: [recipe/passwordless/types.ts:33](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L33)

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `emailDelivery?` | `EmailDeliveryTypeInput`\<[`TypePasswordlessEmailDeliveryInput`](#typepasswordlessemaildeliveryinput)\> | [recipe/passwordless/types.ts:56](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L56) |
| `flowType` | `"USER_INPUT_CODE"` \| `"MAGIC_LINK"` \| `"USER_INPUT_CODE_AND_MAGIC_LINK"` | [recipe/passwordless/types.ts:54](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L54) |
| `getCustomUserInputCode()?` | (`tenantId`, `userContext`) => `Promise`\<`string`\> \| `string` | [recipe/passwordless/types.ts:61](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L61) |
| `override?` | `object` | [recipe/passwordless/types.ts:63](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L63) |
| `override.apis()?` | (`originalImplementation`, `builder`) => [`APIInterface`](#apiinterface) | [recipe/passwordless/types.ts:68](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L68) |
| `override.functions()?` | (`originalImplementation`, `builder`) => [`RecipeInterface`](#recipeinterface) | [recipe/passwordless/types.ts:64](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L64) |
| `smsDelivery?` | `SmsDeliveryTypeInput`\<[`TypePasswordlessSmsDeliveryInput`](#typepasswordlesssmsdeliveryinput)\> | [recipe/passwordless/types.ts:57](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L57) |

***

### TypeNormalisedInput

```ts check=false reason="Generated API signature"
type TypeNormalisedInput = 
  | {
  contactMethod: "PHONE";
  validatePhoneNumber: (phoneNumber, tenantId) => Promise<string | undefined> | string | undefined;
}
  | {
  contactMethod: "EMAIL";
  validateEmailAddress: (email, tenantId) => Promise<string | undefined> | string | undefined;
}
  | {
  contactMethod: "EMAIL_OR_PHONE";
  validateEmailAddress: (email, tenantId) => Promise<string | undefined> | string | undefined;
  validatePhoneNumber: (phoneNumber, tenantId) => Promise<string | undefined> | string | undefined;
} & object;
```

Defined in: [recipe/passwordless/types.ts:72](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L72)

#### Type Declaration

| Name | Type | Defined in |
| ------ | ------ | ------ |
| `flowType` | `"USER_INPUT_CODE"` \| `"MAGIC_LINK"` \| `"USER_INPUT_CODE_AND_MAGIC_LINK"` | [recipe/passwordless/types.ts:93](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L93) |
| `getCustomUserInputCode()?` | (`tenantId`, `userContext`) => `Promise`\<`string`\> \| `string` | [recipe/passwordless/types.ts:97](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L97) |
| `getEmailDeliveryConfig()` | () => `EmailDeliveryTypeInputWithService`\<[`TypePasswordlessEmailDeliveryInput`](#typepasswordlessemaildeliveryinput)\> | [recipe/passwordless/types.ts:100](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L100) |
| `getSmsDeliveryConfig()` | () => `SmsDeliveryTypeInputWithService`\<[`TypePasswordlessSmsDeliveryInput`](#typepasswordlesssmsdeliveryinput)\> | [recipe/passwordless/types.ts:99](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L99) |
| `override` | `object` | [recipe/passwordless/types.ts:101](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L101) |
| `override.apis()` | (`originalImplementation`, `builder`) => [`APIInterface`](#apiinterface) | [recipe/passwordless/types.ts:106](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L106) |
| `override.functions()` | (`originalImplementation`, `builder`) => [`RecipeInterface`](#recipeinterface) | [recipe/passwordless/types.ts:102](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L102) |

***

### TypePasswordlessEmailDeliveryInput

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

Defined in: [recipe/passwordless/types.ts:433](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L433)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="codelifetime"></a> `codeLifetime` | `number` | [recipe/passwordless/types.ts:439](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L439) |
| <a id="email-1"></a> `email` | `string` | [recipe/passwordless/types.ts:436](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L436) |
| <a id="isfirstfactor"></a> `isFirstFactor` | `boolean` | [recipe/passwordless/types.ts:435](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L435) |
| <a id="preauthsessionid-1"></a> `preAuthSessionId` | `string` | [recipe/passwordless/types.ts:440](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L440) |
| <a id="tenantid"></a> `tenantId` | `string` | [recipe/passwordless/types.ts:441](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L441) |
| <a id="type"></a> `type` | `"PASSWORDLESS_LOGIN"` | [recipe/passwordless/types.ts:434](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L434) |
| <a id="urlwithlinkcode"></a> `urlWithLinkCode?` | `string` | [recipe/passwordless/types.ts:438](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L438) |
| <a id="userinputcode"></a> `userInputCode?` | `string` | [recipe/passwordless/types.ts:437](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L437) |

***

### TypePasswordlessSmsDeliveryInput

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

Defined in: [recipe/passwordless/types.ts:444](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L444)

#### Properties

| Property | Type | Defined in |
| ------ | ------ | ------ |
| <a id="codelifetime-1"></a> `codeLifetime` | `number` | [recipe/passwordless/types.ts:450](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L450) |
| <a id="isfirstfactor-1"></a> `isFirstFactor` | `boolean` | [recipe/passwordless/types.ts:446](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L446) |
| <a id="phonenumber-1"></a> `phoneNumber` | `string` | [recipe/passwordless/types.ts:447](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L447) |
| <a id="preauthsessionid-2"></a> `preAuthSessionId` | `string` | [recipe/passwordless/types.ts:451](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L451) |
| <a id="tenantid-1"></a> `tenantId` | `string` | [recipe/passwordless/types.ts:452](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L452) |
| <a id="type-1"></a> `type` | `"PASSWORDLESS_LOGIN"` | [recipe/passwordless/types.ts:445](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L445) |
| <a id="urlwithlinkcode-1"></a> `urlWithLinkCode?` | `string` | [recipe/passwordless/types.ts:449](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L449) |
| <a id="userinputcode-1"></a> `userInputCode?` | `string` | [recipe/passwordless/types.ts:448](https://github.com/supertokens/supertokens-node/blob/8353a9a70d8b17dd9ff6ffe41201fa2ef0e60218/lib/ts/recipe/passwordless/types.ts#L448) |
