title: how to extract info from JWT token?
body: <p>This is how my token is generated:</p>
  <pre class="lang-js prettyprint-override"><code>const generate_web_token = function (user) {
    const token = jwt.sign(
      {
        _id: user._id,
        email: user.email,
        password: user.password,
      },
      process.env.SECRET_TOKEN_KEY
    );
    return token;
  };
  </code></pre>
  <p>Now, when the clients sends a request to the server, how can the server extract the <code>_id</code> field for example?</p>