My use case is simple, I need to use a OAuth2ClientCredentials authentication flow, but my access token is not returned at the top-level of the response's JSON body, instead, the field is nested, i.e.
{
"tokenData": {
"access_token": "tYGB6EHKxzMs9ecUFhPxDtXflaPKqHACIvcrd4Wx",
"token_type": "Bearer",
"expires_in": 60000
},
"errors": [],
"success": true
}
My proposed solution would be to allow the token_field_name parameter to be a tuple, to reflect the nested structure (i.e. ("tokenData", "access_token"))