Great, that worked!
Sorry if I keep asking. What parameters does jwt-refresh receive? I tried several but it always tells me it's invalid, I'm also not sure if the logout is working right, although it returns a satisfactory response.
I'm trying this, well, one of several I tried:
Content-Type: application/json
Authorization: Bearer access_token...
{
"refresh_token": "1_3_WU..."
}
The response is:
"error": "invalid JWT refresh token"
And the log:
Started POST "/jwt-refresh" for 127.0.0.1 at 2021-05-05 00:36:54 -0400
(0.1ms) SELECT sqlite_version(*)
↳ app/lib/rodauth_app.rb:128:in `block in <class:RodauthApp>'
Sequel (0.3ms) DELETE FROM `account_jwt_refresh_keys` WHERE ((`account_id` = '1') AND (CURRENT_TIMESTAMP > `deadline`
))
↳ app/lib/rodauth_app.rb:128:in `block in <class:RodauthApp>'
Sequel (0.2ms) SELECT `key` FROM `account_jwt_refresh_keys` WHERE ((`account_id` = '1') AND (`id` = '3')) LIMIT 1
↳ app/lib/rodauth_app.rb:128:in `block in <class:RodauthApp>'
Sequel (0.1ms) SELECT * FROM `accounts` WHERE ((`id` = '1') AND (`status` = 'verified')) LIMIT 1
↳ app/lib/rodauth_app.rb:128:in `block in <class:RodauthApp>'
Maybe it would be nice if you could add the endpoints with the parameters needed in the documentation, or maybe I'm not looking for them right.
And how could I customize the login response to include certain profile data, for example?
Thank you very much for your help