fix(auth): improve sign out handling (#2030)

* fix(auth): create index on token table

* only terminate active sessions

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
Silvan
2021-07-19 15:12:00 +02:00
committed by GitHub
parent 1b6fcebaa6
commit 3d865b3178
3 changed files with 10 additions and 3 deletions

View File

@@ -0,0 +1 @@
CREATE INDEX IF NOT EXISTS user_user_agent_idx ON auth.tokens (user_id, user_agent_id);