Add TestGuestLogout route to debug issue
This commit is contained in:
@@ -91,4 +91,19 @@ public class UserController : ControllerBase
|
|||||||
await signOutTask;
|
await signOutTask;
|
||||||
return Ok();
|
return Ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[HttpPut("TestGuestLogout")]
|
||||||
|
public async Task<IActionResult> TestGuestLogout()
|
||||||
|
{
|
||||||
|
var signOutTask = HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
|
||||||
|
|
||||||
|
var userId = User?.GetShogiUserId();
|
||||||
|
if (!string.IsNullOrEmpty(userId))
|
||||||
|
{
|
||||||
|
connectionManager.Unsubscribe(userId);
|
||||||
|
}
|
||||||
|
|
||||||
|
await signOutTask;
|
||||||
|
return Ok();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user