---
lang: en
title: 'API docs: authentication-jwt.jwtauthenticationstrategy.extractcredentials'
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.extractcredentials.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) &gt; [extractCredentials](./authentication-jwt.jwtauthenticationstrategy.extractcredentials.md)

## JWTAuthenticationStrategy.extractCredentials() method

**Signature:**

```typescript
extractCredentials(request: Request): string;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td markdown="1">

request


</td><td markdown="1">

Request


</td><td markdown="1">


</td></tr>
</tbody></table>

**Returns:**

string


