lib/fernet.rb in fernet-1.3 vs lib/fernet.rb in fernet-1.4
- old
+ new
@@ -16,6 +16,12 @@
end
def self.verify(secret, token, encrypt = Configuration.encrypt, &block)
Verifier.new(secret, encrypt).verify_token(token, &block)
end
+
+ def self.verifier(secret, token, encrypt = Configuration.encrypt)
+ Verifier.new(secret, encrypt).tap do |v|
+ v.verify_token(token)
+ end
+ end
end