diff --git a/lib/httpsensible/jwt.rb b/lib/httpsensible/jwt.rb index 9d35fab..be09084 100644 --- a/lib/httpsensible/jwt.rb +++ b/lib/httpsensible/jwt.rb @@ -9,7 +9,7 @@ module JWT class << self def encode_jwt(pem, iss, iat: Time.now.to_i - 60, exp: Time.now.to_i + (10 * 60)) - private_key = OpenSSL::PKey::RSA.new(YETTO_PLUG_PEM) + private_key = OpenSSL::PKey::RSA.new(pem) payload = { # issued at time, 60 seconds in the past to allow for clock drift iat: iat, diff --git a/lib/httpsensible/version.rb b/lib/httpsensible/version.rb index c8f7ace..cf344e6 100644 --- a/lib/httpsensible/version.rb +++ b/lib/httpsensible/version.rb @@ -2,5 +2,5 @@ # frozen_string_literal: true module Httpsensible - VERSION = "0.1.0" + VERSION = "0.1.1" end diff --git a/sorbet/rbi/todo.rbi b/sorbet/rbi/todo.rbi deleted file mode 100644 index 71abadc..0000000 --- a/sorbet/rbi/todo.rbi +++ /dev/null @@ -1,7 +0,0 @@ -# DO NOT EDIT MANUALLY -# This is an autogenerated file for unresolved constants. -# Please instead update this file by running `bin/tapioca todo`. - -# typed: false - -module Httpsensible::JWT::YETTO_PLUG_PEM; end