File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -329,6 +329,28 @@ async def test_signout_api_works_even_if_session_is_deleted_after_creation(
329329 )
330330
331331
332+ async def test_signout_api_returns_401_without_session_tokens (
333+ driver_config_client : TestClient ,
334+ ):
335+ init (
336+ supertokens_config = SupertokensConfig ("http://localhost:3567" ),
337+ app_info = InputAppInfo (
338+ app_name = "SuperTokens Demo" ,
339+ api_domain = "https://api.supertokens.io" ,
340+ website_domain = "supertokens.io" ,
341+ ),
342+ framework = "fastapi" ,
343+ recipe_list = [session .init (anti_csrf = "VIA_TOKEN" )],
344+ )
345+ start_st ()
346+
347+ signout_response = driver_config_client .post (
348+ url = "/auth/signout" ,
349+ )
350+
351+ assert signout_response .status_code == 401
352+
353+
332354async def test_should_use_override_functions_in_session_container_methods ():
333355 def override_session_functions (oi : RecipeInterface ) -> RecipeInterface :
334356 oi_get_session_information = oi .get_session_information
You can’t perform that action at this time.
0 commit comments