Skip to content

Commit 6facc4b

Browse files
committed
Fix deprecation with Faraday::Connection#authorization
Fixes #59 > WARNING: `Faraday::Connection#authorization` is deprecated; it will be removed in version 2.0. > While initializing your connection, use `#request(:authorization, ...)` instead. > See https://lostisland.github.io/faraday/middleware/authentication for more usage info. Followed the docs at https://lostisland.github.io/faraday/middleware/authentication which as noted the Bearer auth implementation is *unchanged* between v1 and v2. The v1 approach is listed at the bottom while the current docs are for v2 which is unreleased.
1 parent d829ed1 commit 6facc4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/dwolla_v2/token.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def inspect
5353

5454
def conn
5555
@conn ||= Faraday.new do |f|
56-
f.authorization :Bearer, access_token if access_token
56+
f.request :authorization, :Bearer, access_token if access_token
5757
f.headers[:accept] = "application/vnd.dwolla.v1.hal+json"
5858
f.request :multipart
5959
f.request :json

0 commit comments

Comments
 (0)