Skip to content

v0.2.0

Latest

Choose a tag to compare

@danielinoa danielinoa released this 14 Jan 22:36

Added

  • Session Listing: user.seshlock_sessions returns all active sessions for a user, ordered by most recent first.
  • Revoke All Sessions: user.revoke_all_seshlock_sessions! revokes all active sessions for a user (logout everywhere).
  • Revoke Other Sessions: user.revoke_other_seshlock_sessions!(except_refresh_token:) revokes all sessions except the specified one.
  • Controller Helpers:
    • seshlock_list_sessions - Returns array of session info with id, device, created_at, expires_at, and current flag.
    • seshlock_revoke_all - Revokes all sessions for the current user.
    • seshlock_revoke_others - Revokes all sessions except the current one.
    • seshlock_revoke_session(session_id:) - Revokes a specific session by ID.