Sha256: fbc85b9e214d40c62fe582da5096b8b35c537f52faedd5bebca3af781dcf0166
Contents?: true
Size: 273 Bytes
Versions: 13
Compression:
Stored size: 273 Bytes
Contents
module OpenIDConnect module JWTnizable def to_jwt(key, algorithm = :RS256, &block) token = JSON::JWT.new as_json yield token if block_given? if algorithm != :none token = token.sign key, algorithm end token.to_s end end end
Version data entries
13 entries across 13 versions & 1 rubygems