title: JWT encode error Expected 3 arguments. Found 2
body: <p>I try to create a restful api with JWT in CI4, when I create token with code below :</p>
  <pre><code>$key = getenv('TOKEN_SECRET');
      $payload = array(
          &quot;iat&quot; =&gt; 1356999524,
          &quot;nbf&quot; =&gt; 1357000000,
          &quot;uid&quot; =&gt; $user['id'],
          &quot;email&quot; =&gt; $user['email']
      );
  
      $token = JWT::encode($payload, $key);
  </code></pre>
  <p>Why do I get the error:</p>
  <blockquote>
  <p>Expected 3 arguments. Found 2</p>
  </blockquote>