Skip to content

Commit

Permalink
fix cojo for French Polynesia
Browse files Browse the repository at this point in the history
  • Loading branch information
maatinito committed Oct 11, 2023
1 parent 2b7a791 commit b532672
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ GEM
http-cookie (>= 1.0.2, < 2.0)
mime-types (>= 1.16, < 4.0)
netrc (~> 0.8)
rexml (3.2.5)
rexml (3.2.6)
rodf (1.1.1)
builder (>= 3.0)
dry-inflector (~> 0.1)
Expand Down Expand Up @@ -686,7 +686,7 @@ GEM
selectize-rails (0.12.6)
selenium-devtools (0.114.0)
selenium-webdriver (~> 4.2)
selenium-webdriver (4.10.0)
selenium-webdriver (4.14.0)
rexml (~> 3.2, >= 3.2.5)
rubyzip (>= 1.2.2, < 3.0)
websocket (~> 1.0)
Expand Down Expand Up @@ -798,7 +798,7 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
websocket (1.2.9)
websocket (1.2.10)
websocket-driver (0.7.5)
websocket-extensions (>= 0.1.0)
websocket-extensions (0.1.5)
Expand Down
2 changes: 1 addition & 1 deletion app/services/cojo_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def jwt_payload

def rsa_private_key
if ENV['COJO_JWT_RSA_PRIVATE_KEY'].present?
OpenSSL::PKey::RSA.new(ENV['COJO_JWT_RSA_PRIVATE_KEY'])
OpenSSL::PKey::RSA.new((ENV['COJO_JWT_RSA_PRIVATE_KEY'] + "\n").gsub("\\n", "\n"))
end
end
end

0 comments on commit b532672

Please sign in to comment.