@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
35 lines (22 loc) • 1.11 kB
Markdown
lang: en
title: 'API docs: authentication.authenticateactionprovider.action'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
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 | Request | The incoming request provided by the REST layer |
<b>Returns:</b>
Promise<[UserProfile](./security.userprofile.md) \| undefined>