This PR fixes a problem where the header of Www-authenticate was checked with a non-standard keyword for invalid token. Per the RFC, the standard keyword invalid_grant specify an invalid or expired token.
Moreover it has been added a check to try to refresh the token if possible.
This PR fixes a problem where the header of Www-authenticate was checked with a non-standard keyword for invalid token. Per the RFC, the standard keyword invalid_grant specify an invalid or expired token.
Moreover it has been added a check to try to refresh the token if possible.