Class: Passwordless::Session

Inherits:
ApplicationRecord show all
Defined in:
app/models/passwordless/session.rb

Overview

The session responsible for holding the connection between the record trying to log in and the unique tokens.

Instance Method Summary collapse

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'app/models/passwordless/session.rb', line 24

def expired?
  expires_at <= Time.current
end