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 +16
-8
lines changed Expand file tree Collapse file tree 2 files changed +16
-8
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
1617 STORAGE_KEY ,
1718)
1819from ..errors import (
20+ AuthApiError ,
1921 AuthImplicitGrantRedirectError ,
2022 AuthInvalidCredentialsError ,
2123 AuthRetryableError ,
@@ -483,10 +485,12 @@ async def sign_out(self) -> None:
483485 There is no way to revoke a user's access token jwt until it expires.
484486 It is recommended to set a shorter expiry on the jwt for this reason.
485487 """
486- session = await self .get_session ()
487- access_token = session .access_token if session else None
488- if access_token :
489- await self .admin .sign_out (access_token )
488+ with suppress (AuthApiError ):
489+ session = await self .get_session ()
490+ access_token = session .access_token if session else None
491+ if access_token :
492+ await self .admin .sign_out (access_token )
493+
490494 await self ._remove_session ()
491495 self ._notify_all_subscribers ("SIGNED_OUT" , None )
492496
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
1617 STORAGE_KEY ,
1718)
1819from ..errors import (
20+ AuthApiError ,
1921 AuthImplicitGrantRedirectError ,
2022 AuthInvalidCredentialsError ,
2123 AuthRetryableError ,
@@ -481,10 +483,12 @@ def sign_out(self) -> None:
481483 There is no way to revoke a user's access token jwt until it expires.
482484 It is recommended to set a shorter expiry on the jwt for this reason.
483485 """
484- session = self .get_session ()
485- access_token = session .access_token if session else None
486- if access_token :
487- self .admin .sign_out (access_token )
486+ with suppress (AuthApiError ):
487+ session = self .get_session ()
488+ access_token = session .access_token if session else None
489+ if access_token :
490+ self .admin .sign_out (access_token )
491+
488492 self ._remove_session ()
489493 self ._notify_all_subscribers ("SIGNED_OUT" , None )
490494
You can’t perform that action at this time.
0 commit comments