Module: TokenVerification
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/generators/templates/models/concerns/token_verification.rb
Defined Under Namespace
Modules: ClassMethods Classes: ExpiredToken
Instance Method Summary collapse
Instance Method Details
#expiration_token(expires_at, purpose) ⇒ Object
9 10 11 12 |
# File 'lib/generators/templates/models/concerns/token_verification.rb', line 9 def expiration_token(expires_at, purpose) verifier = self.class.verifier_for(purpose) verifier.generate({ id: id, expires_at: expires_at }) end |