UNPKG

@loopback/docs

Version:
37 lines (23 loc) 1.02 kB
--- lang: en title: 'API docs: authentication.tokenservice.revoketoken' keywords: LoopBack 4.0, LoopBack 4 sidebar: lb4_sidebar editurl: https://github.com/strongloop/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 | <code>string</code> | The token/secret which should be revoked/invalidated. | <b>Returns:</b> `Promise<boolean>` true, if the given token was invalidated.