@@ -45,20 +45,21 @@ <h1 class="title">Module <code>supertokens_python.recipe.session.interfaces</cod
45
45
from typing import (
46
46
TYPE_CHECKING,
47
47
Any,
48
+ Callable,
48
49
Dict,
49
50
Generic,
50
51
List,
52
+ Optional,
51
53
TypeVar,
52
54
Union,
53
- Callable,
54
- Optional,
55
55
)
56
56
57
57
from 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
59
61
from .exceptions import ClaimValidationError
60
62
from .utils import SessionConfig
61
- from ...utils import resolve
62
63
63
64
if TYPE_CHECKING:
64
65
from supertokens_python.framework import BaseRequest, BaseResponse
@@ -347,7 +348,7 @@ <h1 class="title">Module <code>supertokens_python.recipe.session.interfaces</cod
347
348
session: Optional[SessionContainer],
348
349
api_options: APIOptions,
349
350
user_context: Dict[str, Any],
350
- ) -> SignOutOkayResponse:
351
+ ) -> Union[ SignOutOkayResponse, GeneralErrorResponse] :
351
352
pass
352
353
353
354
@abstractmethod
@@ -696,7 +697,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
696
697
session: Optional[SessionContainer],
697
698
api_options: APIOptions,
698
699
user_context: Dict[str, Any],
699
- ) -> SignOutOkayResponse:
700
+ ) -> Union[ SignOutOkayResponse, GeneralErrorResponse] :
700
701
pass
701
702
702
703
@abstractmethod
@@ -742,7 +743,7 @@ <h3>Methods</h3>
742
743
</ details >
743
744
</ dd >
744
745
< 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 >
746
747
</ code > </ dt >
747
748
< dd >
748
749
< div class ="desc "> </ div >
@@ -756,7 +757,7 @@ <h3>Methods</h3>
756
757
session: Optional[SessionContainer],
757
758
api_options: APIOptions,
758
759
user_context: Dict[str, Any],
759
- ) -> SignOutOkayResponse:
760
+ ) -> Union[ SignOutOkayResponse, GeneralErrorResponse] :
760
761
pass</ code > </ pre >
761
762
</ details >
762
763
</ dd >
0 commit comments