heroku/relish — pull request #4 by gorsuch (2012-11-12 21:18:42+00:00)
Title: re-verify token after changing enforce_ttl

Relish leans on `Fernet.verifier` which calls `verify_token` before returning. `verify_token` is what sets the `valid` accessor. Since TTLs don't line up, `false` is returned.

https://github.com/hgmnz/fernet/blob/9fa4009896e8e17151a534c880dd5cd01ef6bfaf/lib/fernet.rb#L22

This adjusts things so `verify_token` is called after you choose to ignore ttls, thus giving us a valid `Verifier`.