Skip to content

Commit 0bcb1d4

Browse files
author
Laurynas Butkus
committed
Prioritize secret over token
1 parent 232d30d commit 0bcb1d4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
- run: bundle install
2525
- env:
2626
CONVERT_API_SECRET: ${{ secrets.CONVERTAPI_SECRET }}
27-
# CONVERT_API_TOKEN: ${{ secrets.CONVERTAPI_TOKEN }}
27+
CONVERT_API_TOKEN: ${{ secrets.CONVERTAPI_TOKEN }}
2828
run: bundle exec rake spec

lib/convert_api/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ def build_form_data(params)
124124
end
125125

126126
def authentication
127-
return { Token: config.token } unless config.token.nil?
128127
return { Secret: config.api_secret } unless config.api_secret.nil?
128+
return { Token: config.token } unless config.token.nil?
129129

130130
nil
131131
end

0 commit comments

Comments
 (0)