hezarfen_backend
Clone
https://git.tahinli.com/archive/hezarfen_backend.git
0 watching0 forksRust8.3 MiB6d68754Ahmet Kaan Gümüş2 months ago566 commits
| 1 | //! Session workflows: mint on login, resolve per request, revoke on logout |
| 2 | //! and on password resets, sweep expired rows. The queries live in |
| 3 | //! [`crate::db::session`]. |
| 4 | |
| 5 | use crateDatabase; |
| 6 | use cratesession; |
| 7 | use crateSession; |
| 8 | use crateUserId; |
| 9 | use crateAppError; |
| 10 | |
| 11 | pub async |
| 12 | |
| 13 | |
| 14 | |
| 15 | pub async |
| 16 | |
| 17 | |
| 18 | |
| 19 | pub async |
| 20 | |
| 21 | |
| 22 | |
| 23 | /// Revoke every session a user holds — the other half of a password reset. |
| 24 | pub async |
| 25 | |
| 26 | |
| 27 | |
| 28 | /// Drop expired rows; best-effort on the login path. |
| 29 | pub async |
| 30 | |
| 31 |