Amri91/authomatic

Does authomatic.verify return a promise?

Closed this issue · 1 comments

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.

Nope, I'll update the docs momentarily. Thanks!