@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
44 lines (30 loc) • 1.73 kB
Markdown
lang: en
title: 'API docs: authentication-jwt.jwtauthenticationstrategy'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/extensions/authentication-jwt
permalink: /doc/en/lb4/apidocs.authentication-jwt.jwtauthenticationstrategy.html
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication-jwt](./authentication-jwt.md) > [JWTAuthenticationStrategy](./authentication-jwt.jwtauthenticationstrategy.md)
## JWTAuthenticationStrategy class
<b>Signature:</b>
```typescript
export declare class JWTAuthenticationStrategy implements AuthenticationStrategy
```
<b>Implements:</b> [AuthenticationStrategy](./authentication.authenticationstrategy.md)
## Constructors
| Constructor | Modifiers | Description |
| --- | --- | --- |
| [(constructor)(tokenService)](./authentication-jwt.jwtauthenticationstrategy._constructor_.md) | | Constructs a new instance of the <code>JWTAuthenticationStrategy</code> class |
## Properties
| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [name](./authentication-jwt.jwtauthenticationstrategy.name.md) | | string | |
| [tokenService](./authentication-jwt.jwtauthenticationstrategy.tokenservice.md) | | [TokenService](./authentication.tokenservice.md) | |
## Methods
| Method | Modifiers | Description |
| --- | --- | --- |
| [authenticate(request)](./authentication-jwt.jwtauthenticationstrategy.authenticate.md) | | |
| [extractCredentials(request)](./authentication-jwt.jwtauthenticationstrategy.extractcredentials.md) | | |