UNPKG

@digitalpersona/devices

Version:
28 lines (16 loc) 864 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@digitalpersona/devices](./devices.md) &gt; [CardsReader](./devices.cardsreader.md) &gt; [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.