diff --git a/CometServer/Modules/Authentication/AuthenticationModule.cs b/CometServer/Modules/Authentication/AuthenticationModule.cs index 0dba72ac..e1a5dbf9 100644 --- a/CometServer/Modules/Authentication/AuthenticationModule.cs +++ b/CometServer/Modules/Authentication/AuthenticationModule.cs @@ -69,7 +69,7 @@ public override void AddRoutes(IEndpointRouteBuilder app) { var token = jwtTokenService.CreateToken(authenticationPerson); res.StatusCode = 200; - await res.WriteAsync(token); + await res.AsJson(token); return; }