# Authentication.deserializeOptions

Deserializes credential request options that can be passed to `navigator.credentials.get()`.

## Imports

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

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

## Examples

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

const options = Authentication.getOptions({
  challenge: '0xdeadbeef'
})
const serialized = Authentication.serializeOptions(options)

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

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

## Definition

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

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

## Parameters

### options

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

The serialized credential request options.

## Return Type

The deserialized credential request options.

`Types.CredentialRequestOptions`
