# SignInAliases

The different ways in which users of this pool can sign up or sign in.

- Source: [`aws-cognito/lib/user-pool.ts`](https://github.com/aws/aws-cdk/blob/v2.276.0/packages/aws-cdk-lib/aws-cognito/lib/user-pool.ts#L35)

## Example

```ts
new cognito.UserPool(this, 'myuserpool', {
  // ...
  // ...
  signInAliases: { username: true, email: true },
  autoVerify: { email: true, phone: true },
});
```

## Properties

- `email`: boolean = false — Whether a user is allowed to sign up or sign in with an email address.

- `phone`: boolean = false — Whether a user is allowed to sign up or sign in with a phone number.

- `preferredUsername`: boolean = false — Whether a user is allowed to sign in with a secondary username, that can be set and modified after sign up.

  Can only be used in conjunction with `USERNAME`.

- `username`: boolean = true — Whether user is allowed to sign up or sign in with a username.
