RubyGems Navigation menu

sessions 0.1.1

sessions gives any Rails 8+ app a GitHub-style "your devices" page (list every active session, log out of one device, sign out everywhere else) plus an admin-grade, append-only trail of every login attempt — successful and failed — with parsed device intelligence ("Chrome on macOS", "MyApp 2.4.1 on Pixel 8 (Android 16)"), IP geolocation (via the trackdown gem, soft dependency), and the auth method that started each session (password, OAuth provider, passkey, magic link…). It decorates the session storage your app already has instead of replacing it: on Rails 8 omakase auth (`rails generate authentication`) it enriches the generated sessions table with zero app-code changes, and on Devise it generalizes the proven session_limitable mechanism into true per-device remote revocation via Warden hooks. It detects Hotwire Native apps (platform, OS version, app version, device model), never breaks login (every tracking path is error-isolated), ships privacy-first defaults (bounded retention with a sweep job, optional IP truncation, no browser fingerprinting or invasive client-side probing — device continuity is one signed first-party cookie, minted only at login), and includes a mountable, i18n'd devices page you can restyle or eject view-by-view like Devise.

Gemfile:
=

install:
=

Versions:

  1. 0.1.1 June 12, 2026 (228 KB)
  2. 0.1.0 June 12, 2026 (224 KB)

Runtime Dependencies (5):

actionpack >= 7.1.0, < 9.0
activerecord >= 7.1.0, < 9.0
activesupport >= 7.1.0, < 9.0
browser >= 6.0
railties >= 7.1.0, < 9.0

Owners:

Pushed by:

Authors:

  • rameerez

SHA 256 checksum:

=

Total downloads 293

For this version 176

Version Released:

License:

MIT

Required Ruby Version: >= 3.2.0

New versions require MFA: true

Version published with MFA: true

Links: