UNPKG

@loopback/docs

Version:

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

37 lines (23 loc) 1.03 kB
--- 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) **Signature:** ```typescript revokeToken?(token: string): Promise<boolean>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | token | string | The token/secret which should be revoked/invalidated. | **Returns:** Promise&lt;boolean&gt; true, if the given token was invalidated.