@loopback/docs
Version:
Documentation files rendered at [https://loopback.io](https://loopback.io)
33 lines (21 loc) • 947 B
Markdown
---
lang: en
title: 'API docs: authentication-jwt.jwtservice.verifytoken'
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.jwtservice.verifytoken.html
---
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@loopback/authentication-jwt](./authentication-jwt.md) > [JWTService](./authentication-jwt.jwtservice.md) > [verifyToken](./authentication-jwt.jwtservice.verifytoken.md)
## JWTService.verifyToken() method
<b>Signature:</b>
```typescript
verifyToken(token: string): Promise<UserProfile>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| token | string | |
<b>Returns:</b>
Promise<[UserProfile](./security.userprofile.md)<!-- -->>