The problem was where I had defined JWT_AUTH_SECRET_KEY variable in the wp-config.php file.
Setting the variable in the correct part of the file makes the plugin work properly.
Thank you.
Looking at the plugin code I think the problem is related to the JWT_AUTH_SECRET_KEY variable.
When the token is created the variable is being accessed without problem, but when the validate_token function is called it seems not to be there.
Thank you.
Any solution?
I think like MarioFromBelgium and I haven´t found any solution.