Sha256: 6fb5f68c1adc472e1927c7fbc10700c9480cf76e4bbd73b300551b917062162f
Contents?: true
Size: 345 Bytes
Versions: 39
Compression:
Stored size: 345 Bytes
Contents
class JefferiesTube::AccessToken def self.create(hash) verifier.generate(hash.to_yaml) end def self.read(token) YAML.load(verifier.verify token) rescue ActiveSupport::MessageVerifier::InvalidSignature {} end private def self.verifier ActiveSupport::MessageVerifier.new(Rails.configuration.secret_token) end end
Version data entries
39 entries across 39 versions & 1 rubygems