We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8deaca7 commit c5cb3a7Copy full SHA for c5cb3a7
src/Helldivers-2-API/Controllers/DevelopmentController.cs
@@ -25,6 +25,7 @@ public static IResult CreateToken([FromQuery] string name, [FromQuery] int limit
25
audience: options.Value.Authentication.ValidAudiences.First(),
26
claims: [
27
new Claim("sub", name),
28
+ new Claim(ClaimTypes.Name, name),
29
new Claim("nbf", $"{DateTime.UtcNow.Subtract(DateTime.UnixEpoch).TotalSeconds:0}"),
30
new Claim("iat", $"{DateTime.UtcNow.Subtract(DateTime.UnixEpoch).TotalSeconds:0}"),
31
new Claim("exp", $"{DateTime.UtcNow.AddDays(30).Subtract(DateTime.UnixEpoch).TotalSeconds:0}"),
0 commit comments