@@ -45,20 +45,21 @@ <h1 class="title">Module <code>supertokens_python.recipe.session.interfaces</cod
4545from typing import (
4646 TYPE_CHECKING,
4747 Any,
48+ Callable,
4849 Dict,
4950 Generic,
5051 List,
52+ Optional,
5153 TypeVar,
5254 Union,
53- Callable,
54- Optional,
5555)
5656
5757from supertokens_python.async_to_sync_wrapper import sync
58- from supertokens_python.types import APIResponse, MaybeAwaitable
58+ from supertokens_python.types import APIResponse, GeneralErrorResponse, MaybeAwaitable
59+
60+ from ...utils import resolve
5961from .exceptions import ClaimValidationError
6062from .utils import SessionConfig
61- from ...utils import resolve
6263
6364if TYPE_CHECKING:
6465 from supertokens_python.framework import BaseRequest, BaseResponse
@@ -347,7 +348,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.session.interfaces</cod
347348 session: Optional[SessionContainer],
348349 api_options: APIOptions,
349350 user_context: Dict[str, Any],
350- ) -> SignOutOkayResponse:
351+ ) -> Union[ SignOutOkayResponse, GeneralErrorResponse] :
351352 pass
352353
353354 @abstractmethod
@@ -696,7 +697,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
696697 session: Optional[SessionContainer],
697698 api_options: APIOptions,
698699 user_context: Dict[str, Any],
699- ) -> SignOutOkayResponse:
700+ ) -> Union[ SignOutOkayResponse, GeneralErrorResponse] :
700701 pass
701702
702703 @abstractmethod
@@ -742,7 +743,7 @@ <h3>Methods</h3>
742743</ details >
743744</ dd >
744745< dt id ="supertokens_python.recipe.session.interfaces.APIInterface.signout_post "> < code class ="name flex ">
745- < span > async def < span class ="ident "> signout_post</ span > </ span > (< span > self, session: Optional[< a title ="supertokens_python.recipe.session.interfaces.SessionContainer " href ="#supertokens_python.recipe.session.interfaces.SessionContainer "> SessionContainer</ a > ], api_options: < a title ="supertokens_python.recipe.session.interfaces.APIOptions " href ="#supertokens_python.recipe.session.interfaces.APIOptions "> APIOptions</ a > , user_context: Dict[str, Any]) ‑> < a title ="supertokens_python.recipe.session.interfaces.SignOutOkayResponse " href ="#supertokens_python.recipe.session.interfaces.SignOutOkayResponse "> SignOutOkayResponse</ a > </ span >
746+ < span > async def < span class ="ident "> signout_post</ span > </ span > (< span > self, session: Optional[< a title ="supertokens_python.recipe.session.interfaces.SessionContainer " href ="#supertokens_python.recipe.session.interfaces.SessionContainer "> SessionContainer</ a > ], api_options: < a title ="supertokens_python.recipe.session.interfaces.APIOptions " href ="#supertokens_python.recipe.session.interfaces.APIOptions "> APIOptions</ a > , user_context: Dict[str, Any]) ‑> Union[ < a title ="supertokens_python.recipe.session.interfaces.SignOutOkayResponse " href ="#supertokens_python.recipe.session.interfaces.SignOutOkayResponse "> SignOutOkayResponse</ a > , < a title =" supertokens_python.types.GeneralErrorResponse " href =" ../../types.html#supertokens_python.types.GeneralErrorResponse " > GeneralErrorResponse </ a > ] </ span >
746747</ code > </ dt >
747748< dd >
748749< div class ="desc "> </ div >
@@ -756,7 +757,7 @@ <h3>Methods</h3>
756757 session: Optional[SessionContainer],
757758 api_options: APIOptions,
758759 user_context: Dict[str, Any],
759- ) -> SignOutOkayResponse:
760+ ) -> Union[ SignOutOkayResponse, GeneralErrorResponse] :
760761 pass</ code > </ pre >
761762</ details >
762763</ dd >
0 commit comments