Aligns the unauthorized message of the access token endpoint

This commit is contained in:
BinaryAlley committed 2026-09-14 04:22:15 +03:00
1 parent 675312e03f
commit e29ec47925
1 file changed
+1 -1
@@ -42,7 +42,7 @@ public class GetApiAccessTokenEndpoint : BaseEndpoint<EmptyRequest, IResult>
return Task.FromResult(Results.Problem(
statusCode: StatusCodes.Status401Unauthorized,
title: "Unauthorized",
detail: "You are not authorized"));
detail: "Authentication failed"));
string? token = User.FindFirst("Token")?.Value;
if (string.IsNullOrEmpty(token))