Sha256: 868a9031ad0f61bb7d92bdddd41dcf0cd9c85671fc5c6f87f9eb4fbf17643c66
Contents?: true
Size: 295 Bytes
Versions: 15
Compression:
Stored size: 295 Bytes
Contents
class JsonWebToken class << self def encode(payload) JWT.encode(payload, Rails.application.secrets.secret_key_base) end def decode(token) body = JWT.decode(token, Rails.application.secrets.secret_key_base)[0] HashWithIndifferentAccess.new body end end end
Version data entries
15 entries across 15 versions & 1 rubygems