# WebauthnRegistrationOptions

The WebauthnRegistrationOptions type of the TypeScript SDK, which securityKeys.beginRegistration take or answer.

```ts
type WebauthnRegistrationOptions = {
  attestation: 'none'
  authenticatorSelection: WebauthnRegistrationOptionsAuthenticatorSelection
  challenge: string
  excludeCredentials: WebauthnRegistrationOptionsExcludeCredentialsItem[]
  pubKeyCredParams: WebauthnRegistrationOptionsPubKeyCredParamsItem[]
  rp: WebauthnRegistrationOptionsRp
  timeout: number
  user: WebauthnRegistrationOptionsUser
}
```

## Fields

| Field | Type | Description |
| --- | --- | --- |
| `attestation` | `'none'` | Attestation conveyance preference |
| `authenticatorSelection` | [`WebauthnRegistrationOptionsAuthenticatorSelection`](/docs/sdks/typescript/types/webauthn-registration-options-authenticator-selection) |  |
| `challenge` | `string` | Base64url-encoded one-time challenge |
| `excludeCredentials` | [`WebauthnRegistrationOptionsExcludeCredentialsItem[]`](/docs/sdks/typescript/types/webauthn-registration-options-exclude-credentials-item) | Credentials to exclude to prevent duplicate enrollment |
| `pubKeyCredParams` | [`WebauthnRegistrationOptionsPubKeyCredParamsItem[]`](/docs/sdks/typescript/types/webauthn-registration-options-pub-key-cred-params-item) | Supported cryptographic algorithms |
| `rp` | [`WebauthnRegistrationOptionsRp`](/docs/sdks/typescript/types/webauthn-registration-options-rp) |  |
| `timeout` | `number` | Ceremony timeout in milliseconds |
| `user` | [`WebauthnRegistrationOptionsUser`](/docs/sdks/typescript/types/webauthn-registration-options-user) |  |

## Used by

| Method | What it does |
| --- | --- |
| [`securityKeys.beginRegistration`](/docs/sdks/typescript/security-keys/begin-registration) | Begin WebAuthn security key registration |
