Class: Apiphobic::Tokens::JsonWebTokens::PasswordReset
- Inherits:
-
Apiphobic::Tokens::JsonWebToken
- Object
- Apiphobic::Tokens::JsonWebToken
- Apiphobic::Tokens::JsonWebTokens::PasswordReset
- Defined in:
- lib/apiphobic/tokens/json_web_tokens/password_reset.rb
Constant Summary
Constants inherited from Apiphobic::Tokens::JsonWebToken
Apiphobic::Tokens::JsonWebToken::TRANSFORMATION_EXCEPTIONS
Instance Attribute Summary
Attributes inherited from Apiphobic::Tokens::JsonWebToken
Class Method Summary collapse
Methods inherited from Apiphobic::Tokens::JsonWebToken
#audience, #available?, #blank?, build_from_request, #empty?, #expiration, #expiration_date, #expired?, from_jwe, from_jws, #future_issuance?, #id, #initialize, #issued_at, #issuer, #not_before, #not_before_date, #owner_id, #present?, #roles, #subject, #subject_id, #to_h, #to_jwe, #to_jwe_s, #to_jws, #to_jws_s, #to_jwt, #to_jwt_s, #valid?, #valid_audience?, #valid_id?, #valid_issuer?, #valid_role?, #valid_subject?, #validate!
Methods included from RolePredicable
#method_missing, #respond_to_missing?
Methods included from Configurable
Constructor Details
This class inherits a constructor from Apiphobic::Tokens::JsonWebToken
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Apiphobic::Tokens::RolePredicable
Class Method Details
.build(expiration: Time.now.utc.to_i + (30 * 60), roles: %w{password_reset},, **attrs) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/apiphobic/tokens/json_web_tokens/password_reset.rb', line 9 def self.build(expiration: Time.now.utc.to_i + (30 * 60), roles: %w{password_reset}, **attrs) super(expiration: expiration, roles: roles, **attrs) end |