Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: Though, the `MessageVerifier` that powers `signed_id` supports both `expires_in` and `expires_at`, `signed_id` only supports `expires_in`. Because of this, generating signed_id that expires at a certain time is somewhat tedious. Imagine issuing a coupon that is valid only for a day. Solution: Add `expires_at` option to `signed_id` to generate signed ids that expire at the given time.
- Loading branch information
Showing
3 changed files
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters