Class: CommandTower::Auth::PasswordRecoverySessionContext

Inherits:
Data
  • Object
show all
Defined in:
app/auth/command_tower/auth/password_recovery_session_context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#client_ipObject (readonly)

Returns the value of attribute client_ip

Returns:

  • (Object)

    the current value of 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_atObject (readonly)

Returns the value of attribute expires_at

Returns:

  • (Object)

    the current value of expires_at



5
6
7
# File 'app/auth/command_tower/auth/password_recovery_session_context.rb', line 5

def expires_at
  @expires_at
end

#jtiObject (readonly)

Returns the value of attribute jti

Returns:

  • (Object)

    the current value of 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_secondsObject



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