This PR aims to fix an issue that after password changes the session remains which could be security issue.
I have modified the deleteSessionForUser and introduced an option trx parameter which defaults to database.
Also there's use case defined invalidateSessionsUseCase but it's implementation doesn't have transactions so I have directly called the function in the users.tsx
This PR aims to fix an issue that after password changes the session remains which could be security issue. I have modified the
deleteSessionForUser
and introduced an option trx parameter which defaults todatabase
.Also there's use case defined invalidateSessionsUseCase but it's implementation doesn't have transactions so I have directly called the function in the
users.tsx