---
lang: en
title: 'API docs: authentication.tokenservice.revoketoken'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/loopbackio/loopback-next/tree/master/packages/authentication
permalink: /doc/en/lb4/apidocs.authentication.tokenservice.revoketoken.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/authentication](./authentication.md) &gt; [TokenService](./authentication.tokenservice.md) &gt; [revokeToken](./authentication.tokenservice.revoketoken.md)

## TokenService.revokeToken() method

Revokes a given token (if supported by token system)

<b>Signature:</b>

```typescript
revokeToken?(token: string): Promise<boolean>;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  token | string | The token/secret which should be revoked/invalidated. |

<b>Returns:</b>

Promise&lt;boolean&gt;

true, if the given token was invalidated.


