Ruby knock gem integration with devise user model
<p>My goal is to implement knock jwt implementation with existing devise user model.
I followed README.md instructions from knock github project:<br>
<a href="https://github.com/nsarno/knock" rel="nofollow">https://github.com/nsarno/knock</a></p>

<p>When I send, using curl, jwt authentication request for existing user:</p>

<p><code>
curl -X POST -H "Content-Type: application/json" http://127.0.0.1:3000/knock/auth_token --data ' {"auth": {"email": "user@example.com", "password": "password"}} ' —verbose
</code></p>

<p>I got following exception:</p>

<p><code>ArgumentError - wrong number of arguments (given 0, expected 1):
  devise (3.4.1) lib/devise/models/database_authenticatable.rb:147:in password_digest'
  activemodel (4.2.5.2) lib/active_model/secure_password.rb:103:in authenticate'
</code></p>

<p>What could be the problem here?</p>