Your changes in https://github.com/andreareginato/oauth-ng/commit/6947b1c7088c34e833494fb14d0e972e0835b64c on lines 210 and 309 break the support for Authorization Code flow.