@digitalpersona/devices
Version:
DigitalPersona Security Devices support library
27 lines (15 loc) • 847 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/devices](./devices.md) > [CardsReader](./devices.cardsreader.md) > [getCardInfo](./devices.cardsreader.getcardinfo.md)
## CardsReader.getCardInfo() method
Reads card data from a specific card.
<b>Signature:</b>
```typescript
getCardInfo(reader: string): Promise<Card | null>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| reader | <code>string</code> | a name of a card reader where the card was presented. |
<b>Returns:</b>
`Promise<Card | null>`
a promise to return a card information. The promise can be fulfilled but return `null` if the card has no information. The promise will be rejected if a card is not found or in case of a reading error.