@loopback/docs
Version:
Documentation for LoopBack 4
35 lines (22 loc) • 1.06 kB
Markdown
lang: en
title: 'API docs: authentication.authenticateactionprovider.action'
keywords: LoopBack 4.0, LoopBack 4
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/authentication
permalink: /doc/en/lb4/apidocs.authentication.authenticateactionprovider.action.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication](./authentication.md) > [AuthenticateActionProvider](./authentication.authenticateactionprovider.md) > [action](./authentication.authenticateactionprovider.action.md)
## AuthenticateActionProvider.action() method
The implementation of authenticate() sequence action.
<b>Signature:</b>
```typescript
action(request: Request): Promise<UserProfile | undefined>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| request | <code>Request</code> | The incoming request provided by the REST layer |
<b>Returns:</b>
`Promise<UserProfile | undefined>`