@digitalpersona/devices
Version:
DigitalPersona Security Devices support library
28 lines (16 loc) • 864 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) > [getCardAuthData](./devices.cardsreader.getcardauthdata.md)
## CardsReader.getCardAuthData() method
Reads card authentication data.
<b>Signature:</b>
```typescript
getCardAuthData(reader: string, pin?: string): Promise<string>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| reader | <code>string</code> | a name of a card reader where the card was presented. |
| pin | <code>string</code> | an PIN code (for cards requiring a PIN). |
<b>Returns:</b>
`Promise<string>`
a promise to return card authentication data. The card data is an opaque encoded string which should be sent to the server as is.