lib/twilio-ruby/jwt/access_token.rb in twilio-ruby-5.0.0.rc12 vs lib/twilio-ruby/jwt/access_token.rb in twilio-ruby-5.0.0.rc13
- old
+ new
@@ -6,13 +6,13 @@
:secret,
:ttl,
:identity,
:nbf
- def initialize(account_sid, signing_key_id, secret, ttl=3600, identity=nil, nbf=nil)
+ def initialize(account_sid, key_sid, secret, ttl=3600, identity=nil, nbf=nil)
@account_sid = account_sid
- @signing_key_sid = signing_key_id
+ @key_sid = key_sid
@secret = secret
@ttl = ttl
@identity = identity
@nbf = nbf
@grants = []
@@ -35,11 +35,11 @@
end
@grants.each { |grant| grants[grant.key] = grant.payload }
payload = {
- jti: "#{@signing_key_sid}-#{now}",
- iss: @signing_key_sid,
+ jti: "#{@key_sid}-#{now}",
+ iss: @key_sid,
sub: @account_sid,
exp: now + @ttl,
grants: grants
}
\ No newline at end of file