lib/fernet/token.rb in fernet-2.0 vs lib/fernet/token.rb in fernet-2.1

- old
+ new

@@ -1,14 +1,15 @@ # encoding UTF-8 require 'base64' require 'valcro' +require_relative 'errors' module Fernet # Internal: encapsulates a fernet token structure and validation class Token include Valcro - class InvalidToken < StandardError; end + class InvalidToken < Fernet::Error; end # Internal: the default token version DEFAULT_VERSION = 0x80.freeze # Internal: max allowed clock skew for calculating TTL MAX_CLOCK_SKEW = 60.freeze