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  

Returns:

Promise<boolean>

true, if the given token was invalidated.