Class: CommandTower::Auth::PasswordRecoverySessionContext
- Inherits:
-
Data
- Object
- Data
- CommandTower::Auth::PasswordRecoverySessionContext
- Defined in:
- app/auth/command_tower/auth/password_recovery_session_context.rb
Instance Attribute Summary collapse
-
#client_ip ⇒ Object
readonly
Returns the value of attribute client_ip.
-
#expires_at ⇒ Object
readonly
Returns the value of attribute expires_at.
-
#jti ⇒ Object
readonly
Returns the value of attribute jti.
Instance Method Summary collapse
Instance Attribute Details
#client_ip ⇒ Object (readonly)
Returns the value of attribute client_ip
5 6 7 |
# File 'app/auth/command_tower/auth/password_recovery_session_context.rb', line 5 def client_ip @client_ip end |
#expires_at ⇒ Object (readonly)
Returns the value of attribute expires_at
5 6 7 |
# File 'app/auth/command_tower/auth/password_recovery_session_context.rb', line 5 def expires_at @expires_at end |
#jti ⇒ Object (readonly)
Returns the value of attribute jti
5 6 7 |
# File 'app/auth/command_tower/auth/password_recovery_session_context.rb', line 5 def jti @jti end |
Instance Method Details
#remaining_seconds ⇒ Object
6 7 8 |
# File 'app/auth/command_tower/auth/password_recovery_session_context.rb', line 6 def remaining_seconds [expires_at.to_i - Time.now.to_i, 0].max end |