Skip to content

fix(storage): implement DeleteSession for SQL and ArangoDB [M5]#567

Merged
lakhansamani merged 1 commit intomainfrom
fix/m5-delete-session
Apr 4, 2026
Merged

fix(storage): implement DeleteSession for SQL and ArangoDB [M5]#567
lakhansamani merged 1 commit intomainfrom
fix/m5-delete-session

Conversation

@lakhansamani
Copy link
Copy Markdown
Contributor

Summary

  • M5 (Medium): DeleteSession was a no-op — sessions were never revoked
  • SQL: now deletes with WHERE user_id = ?
  • ArangoDB: now uses parameterized AQL to remove matching sessions

Test plan

  • All storage packages compile
  • Verify session revocation works on logout

DeleteSession was a no-op (returned nil without deleting), meaning
sessions could never be revoked. Implemented actual deletion by
user_id for both SQL (GORM) and ArangoDB providers.

Fixes: M5 (Medium)
@lakhansamani lakhansamani merged commit 163d1f3 into main Apr 4, 2026
@lakhansamani lakhansamani deleted the fix/m5-delete-session branch April 4, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant