@digitalpersona/authentication
Version:
DigitalPersona Authentication API
20 lines (11 loc) • 679 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@digitalpersona/authentication](./authentication.md) > [WindowsAuth](./authentication.windowsauth.md) > [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.