Page Contents

Home > @loopback/authentication > TokenService > revokeToken

TokenService.revokeToken() method

Revokes a given token (if supported by token system)

Signature:

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

Parameters

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

Returns:

Promise<boolean>

true, if the given token was invalidated.