UNPKG

@loopback/docs

Version:

Documentation files rendered at [https://loopback.io](https://loopback.io)

161 lines (75 loc) 2.46 kB
--- 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) &gt; [@loopback/authentication-jwt](./authentication-jwt.md) &gt; [JWTAuthenticationStrategy](./authentication-jwt.jwtauthenticationstrategy.md) ## JWTAuthenticationStrategy class **Signature:** ```typescript export declare class JWTAuthenticationStrategy implements AuthenticationStrategy ``` **Implements:** [AuthenticationStrategy](./authentication.authenticationstrategy.md) ## Constructors <table><thead><tr><th> Constructor </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [(constructor)(tokenService)](./authentication-jwt.jwtauthenticationstrategy._constructor_.md) </td><td markdown="1"> </td><td markdown="1"> Constructs a new instance of the `JWTAuthenticationStrategy` class </td></tr> </tbody></table> ## Properties <table><thead><tr><th> Property </th><th> Modifiers </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [name](./authentication-jwt.jwtauthenticationstrategy.name.md) </td><td markdown="1"> </td><td markdown="1"> string </td><td markdown="1"> </td></tr> <tr><td markdown="1"> [tokenService](./authentication-jwt.jwtauthenticationstrategy.tokenservice.md) </td><td markdown="1"> </td><td markdown="1"> [TokenService](./authentication.tokenservice.md) </td><td markdown="1"> </td></tr> </tbody></table> ## Methods <table><thead><tr><th> Method </th><th> Modifiers </th><th> Description </th></tr></thead> <tbody><tr><td markdown="1"> [authenticate(request)](./authentication-jwt.jwtauthenticationstrategy.authenticate.md) </td><td markdown="1"> </td><td markdown="1"> </td></tr> <tr><td markdown="1"> [extractCredentials(request)](./authentication-jwt.jwtauthenticationstrategy.extractcredentials.md) </td><td markdown="1"> </td><td markdown="1"> </td></tr> </tbody></table>