The get_access_token method has the same logic in it already that I had implemented in the ensure_oauth2 decorator. In addition to being redundant it was also not handling an error if the token is not valid.
Coverage: 100.0%. Remained the same when pulling 5610421ddad1fbdfe150df11f247728b5c942ee6 on ensure_oauth_hotfix into cfe96e59e2c4d8d8641d85c8c15ef72d77d7daad on main.
The
get_access_token
method has the same logic in it already that I had implemented in theensure_oauth2
decorator. In addition to being redundant it was also not handling an error if the token is not valid.