In function unlinkAsync in file /src/util.js, we are calling function fs.unlink( path, callback ), but options param was provided, then this error raised when clear token:
Callback must be a function. Received {}
So we need to remove options param to make it works.
Coverage: 86.341%. Remained the same when pulling 395017c3caafffc18d6703eee3821e6f2bdd97e8 on fix-token-clean-cache into e006ddcb78b9bf24574aee3c55e18fb431fc737e on main.
In function
unlinkAsync
in file/src/util.js
, we are calling functionfs.unlink( path, callback )
, butoptions
param was provided, then this error raised when clear token:So we need to remove options param to make it works.