Sha256: ef92d38894f990c48d084e1b57e810b9484da715ba41baa561b7a05e6b02c355
Contents?: true
Size: 207 Bytes
Versions: 4
Compression:
Stored size: 207 Bytes
Contents
module MaticJWT class Generator def token_for(client_name, secret) payload = {client_name: client_name, exp: EXPIRATION.since.to_i} JWT.encode(payload, secret, ALGORITHM) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
matic-jwt-0.3.0 | lib/matic-jwt/generator.rb |
matic-jwt-0.2.5 | lib/matic-jwt/generator.rb |
matic-jwt-0.2.4 | lib/matic-jwt/generator.rb |
matic-jwt-0.2.3 | lib/matic-jwt/generator.rb |