UNPKG

@digitalpersona/authentication

Version:
20 lines (11 loc) 679 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@digitalpersona/authentication](./authentication.md) &gt; [WindowsAuth](./authentication.windowsauth.md) &gt; [authenticate](./authentication.windowsauth.authenticate.md) ## WindowsAuth.authenticate() method Authenticates using a currently logged Windows user. <b>Signature:</b> ```typescript authenticate(): Promise<JSONWebToken>; ``` <b>Returns:</b> `Promise<JSONWebToken>` a promise to return a JSON Web Token containing a claim (`crd`<!-- -->) showing the fact a currently logged Window account was used. Will reject if authentication fails.