This repository was archived by the owner on Sep 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ from contextlib import suppress
34from functools import partial
45from json import loads
56from time import time
@@ -484,15 +485,12 @@ async def sign_out(self) -> None:
484485 There is no way to revoke a user's access token jwt until it expires.
485486 It is recommended to set a shorter expiry on the jwt for this reason.
486487 """
487- try :
488+ with suppress ( AuthApiError ) :
488489 session = await self .get_session ()
489490 access_token = session .access_token if session else None
490491 if access_token :
491492 await self .admin .sign_out (access_token )
492- except AuthApiError :
493- pass
494- except Exception :
495- raise
493+
496494 await self ._remove_session ()
497495 self ._notify_all_subscribers ("SIGNED_OUT" , None )
498496
Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ from contextlib import suppress
34from functools import partial
45from json import loads
56from time import time
@@ -482,15 +483,12 @@ def sign_out(self) -> None:
482483 There is no way to revoke a user's access token jwt until it expires.
483484 It is recommended to set a shorter expiry on the jwt for this reason.
484485 """
485- try :
486+ with suppress ( AuthApiError ) :
486487 session = self .get_session ()
487488 access_token = session .access_token if session else None
488489 if access_token :
489490 self .admin .sign_out (access_token )
490- except AuthApiError :
491- pass
492- except Exception :
493- raise
491+
494492 self ._remove_session ()
495493 self ._notify_all_subscribers ("SIGNED_OUT" , None )
496494
You can’t perform that action at this time.
0 commit comments