Closed Drarig29 closed 2 years ago
https://github.com/bytesbay/web3-token/blob/a77579931a606f06239b9f06021a8b587f749cd9/src/lib/verify/verify.js#L67
The verify() function isn't a promise but you are using await with it everywhere. Is it a mistake or to be future-proof? Or to be consistent with await sign()?
verify()
await
await sign()
Because of that I get a warning:
'await' has no effect on the type of this expression.
mistake
https://github.com/bytesbay/web3-token/blob/a77579931a606f06239b9f06021a8b587f749cd9/src/lib/verify/verify.js#L67
The
verify()
function isn't a promise but you are usingawait
with it everywhere. Is it a mistake or to be future-proof? Or to be consistent withawait sign()
?Because of that I get a warning: