Does authomatic.verify return a promise?
Closed this issue · 1 comments
dicearr commented
AFAIK, jsonwebtoken.verify
is asynchronous only if a callback is provided.
No callback is given in authomatic:
const verify = (token, secret, verifyOptions = {}) =>
jwt.verify(Token(token), Secret(secret), {
...defaultVerifyOptions,
...VerifyOptions(verifyOptions),
algorithm: algorithm
});
But according to the docs authomatic.verify
is returning a promise.
Amri91 commented
Nope, I'll update the docs momentarily. Thanks!