Hi,
I'd like to build a simple api thingy with jwt auth using Roda and Rodauth.
The docs seems confusing to me. But I managed to create a user using the following code
```
# create account
rodauth.new_account(login)
rodauth.set_new_account_password(password)
rodauth.save_account
``
But during the signin it always returns that I successfully signed in
```
# signin
if account = rodauth.account_from_login(login)
if rodauth.password_match?(password)
rodauth.login(password)
end
end
```
Whats the correct way of signing in a user through json?
This is the config part (at the top of the main file):
create_account doesn't seem to work with json
```
plugin :rodauth, json: :only do
enable :login, :create_account, :change_password, :close_account, :jwt
only_json? true
jwt_secret "hello"
account_password_hash_column :password_hash
end
```
And I deleted the following part from the migration
```
# case database_type
# when :postgres
# user = get(Sequel.lit('current_user')) + '_password'
# run "GRANT SELECT, INSERT, UPDAT
# run "GRANT SELECT, INSERT, UPDAT
# run "GRANT SELECT, INSERT, UPDAT
# ....
# end
```