Skip to content

Commit

Permalink
Fix bearer token authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Aug 10, 2023
1 parent 7a571af commit 1a1ca93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/x/request_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_request(http_method, url, body)

def add_authorization(authenticator, request)
if authenticator.bearer_token
request["Authorization"] = "Bearer #{@bearer_token}"
request["Authorization"] = "Bearer #{authenticator.bearer_token}"
else
authenticator.sign!(request)
end
Expand Down

0 comments on commit 1a1ca93

Please sign in to comment.