lib/amazon_auth/client.rb in amazon_auth-0.1.0 vs lib/amazon_auth/client.rb in amazon_auth-0.1.1
- old
+ new
@@ -6,17 +6,17 @@
@url = options.fetch(:url) { INITIAL_ENTRY_URL }
@login = options.fetch(:login) do
if (amazon_username_code = ENV['AMAZON_USERNAME_CODE']).present?
Converter.decode(amazon_username_code)
else
- ENV['AMAZON_USERNAME'].presence || raise('AMAZON_USERNAME is required.')
+ raise('AMAZON_USERNAME_CODE is required.')
end
end
@password = options.fetch(:password) do
if (amazon_password_code = ENV['AMAZON_PASSWORD_CODE']).present?
Converter.decode(amazon_password_code)
else
- ENV['AMAZON_PASSWORD'].presence || raise('AMAZON_PASSWORD is required.')
+ raise('AMAZON_PASSWORD_CODE is required.')
end
end
end
def sign_in