# License Initialization

A license key is required to use the MRZ Scanner. Follow the steps below to obtain and configure one.

## Get a Trial License

You can request a 30-day trial license via the [Trial License](https://www.dynamsoft.com/customer/license/trialLicense?product=mrz&package=react-native&utm_source=docs){:target="_blank"} portal.

## Get a Full License

<a href="https://www.dynamsoft.com/company/contact" target="_blank">Contact us</a> to purchase a full license.

## Set the License in the Code

Set the license key on `MRZScanConfig` before launching the scanner.

```ts
const config = {
  license: 'YOUR-LICENSE-KEY',
} as MRZScanConfig;
const mrzResult = await MRZScanner.launch(config);
```
