Previous behavior:delivery_method=postback with token auth and Faraday >= v2.0.0 breaks because theconnection.token_auth method was removed in Faraday v2.0.0.
New behavior:
Postback token auth works for Faraday v1.x and v2.x. Uses existence of connection.token_auth method to branch to either the preexisting token auth method or the newer token auth method connection.request(:authorization, 'Token', @delivery_options.token).
Previous behavior:
delivery_method=postback
with token auth and Faraday >= v2.0.0 breaks because theconnection.token_auth
method was removed in Faraday v2.0.0.New behavior: Postback token auth works for Faraday v1.x and v2.x. Uses existence of
connection.token_auth
method to branch to either the preexisting token auth method or the newer token auth methodconnection.request(:authorization, 'Token', @delivery_options.token)
.