Skip to content

Commit

Permalink
Fix 'Faraday::Connection#authorization' deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekchime committed Apr 28, 2022
1 parent 1c58db5 commit bc67aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/oktakit/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def sawyer_agent
http.headers[:accept] = 'application/json'
http.headers[:content_type] = 'application/json'
http.headers[:user_agent] = "Oktakit v#{Oktakit::VERSION}"
http.authorization('SSWS ', @token) if @token
http.authorization(:Bearer, @access_token) if @access_token
http.headers[:authorization] = "SSWS #{@token}" if @token
http.headers[:authorization] = "Bearer #{@access_token}" if @access_token
end
end

Expand Down

0 comments on commit bc67aa5

Please sign in to comment.