Extend the session's expiry time. Resets the expiry time to AUTH_SESSION_EXPIRY seconds from now.
(self)
| 77 | return session |
| 78 | |
| 79 | def extend(self) -> None: |
| 80 | """ |
| 81 | Extend the session's expiry time. |
| 82 | |
| 83 | Resets the expiry time to AUTH_SESSION_EXPIRY seconds from now. |
| 84 | """ |
| 85 | return cache.expire(_make_key(self.session_id), AUTH_SESSION_EXPIRY) |
| 86 | |
| 87 | def expire(self) -> None: |
| 88 | """ |