Skip to content

Commit

Permalink
JWT response as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
antoineatstariongroup committed Jan 27, 2025
1 parent ddb940a commit bb618e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CometServer/Modules/Authentication/AuthenticationModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bb618e9

Please sign in to comment.