# Registration.deserializeOptions

Deserializes credential creation options that can be passed to `navigator.credentials.create()`.

## Imports

:::code-group
```ts [Named]
import { Registration } from 'ox/webauthn'
```

```ts [Entrypoint]
import * as Registration from 'ox/webauthn/Registration'
```
:::

## Examples

```ts twoslash
import { Registration } from 'ox/webauthn'

const options = Registration.getOptions({ name: 'Example' })
const serialized = Registration.serializeOptions(options)

// ... send to server and back ...

const deserialized =
  Registration.deserializeOptions(serialized) // [!code focus]
const credential =
  await window.navigator.credentials.create(deserialized)
```

## Definition

```ts
function deserializeOptions(
  options: Types.CredentialCreationOptions<true>,
): Types.CredentialCreationOptions
```

**Source:** [src/webauthn/Registration.ts](https://github.com/wevm/ox/blob/main/src/webauthn/Registration.ts#L422)

## Parameters

### options

* **Type:** `Types.CredentialCreationOptions<true>`

The serialized credential creation options.

## Return Type

The deserialized credential creation options.

`Types.CredentialCreationOptions`
