Skip to content

Commit

Permalink
Refresh log
Browse files Browse the repository at this point in the history
  • Loading branch information
na-stewart committed Nov 27, 2024
1 parent 708db40 commit 5d82de2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sanic_security/models.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import base64
import datetime
import logging
import re
from typing import Union

Expand Down Expand Up @@ -651,6 +652,7 @@ async def refresh(self, request: Request):
):
self.active = False
await self.save(update_fields=["active"])
logging.warning(f"Client {get_ip(request)} has refreshed authentication session {self.id}.")
return await self.new(request, self.bearer, True)
else:
raise e
Expand Down

0 comments on commit 5d82de2

Please sign in to comment.