mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-26 22:57:32 +00:00
d383d3527b
Reading the password version from the oauth domain meant injecting the users repository, which the auth domain owns. The sessions domain answers the same question and more: a password reset or change ends every session of the user, and a sign-out ends the one that consented. The code now carries that session's id and both token endpoints issue tokens for it only while the session is active, checked in the transaction that writes them. A token from before sessions were tracked has no session to check and passes, as it does everywhere until it expires. A refused code is audited as session_ended.