title: How to make callback function in async/await style?
body: <p>Currently I'm working with <code>jwt</code> in node.js app. I use <code>jwt.sign()</code> method which looks like this:</p>
  
  <pre><code>jwt.sign({
              accountID: user.accountID,
              email: user.email,
  
          }, process.env.SECRET_KEY, (err, token) =&gt; {
  
              if (err) throw err
              res.json({token})
          })
  </code></pre>
  
  <p>I don't want to use callback. I want to transform this to <code>async/await</code>. As I know I have to return <code>new Promise</code> with <code>resole({})</code> and <code>reject(err)</code>. But I can't figure out how to use promise from sign() method. Any help appreciated. Thanks! </p>