Skip to content

Commit

Permalink
Add clientId into the generate JWTs.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Mar 5, 2024
1 parent 9d14300 commit f19f3f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Authress.SDK/Client/AuthressClientTokenProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public Task<string> GetBearerToken(string authressCustomDomainFallback = null)
{
{ "iss", GetIssuer(authressCustomDomainFallback) },
{ "sub", accessKey.ClientId },
{ "client_id", accessKey.ClientId },
{ "exp", (int)Math.Floor(expiryDate.Subtract(new DateTime(1970,1,1,0,0,0, DateTimeKind.Utc)).TotalSeconds) },
{ "iat", (int)Math.Floor(now.Subtract(new DateTime(1970,1,1,0,0,0, DateTimeKind.Utc)).TotalSeconds) },
{ "nbf", (int)Math.Floor(now.Subtract(TimeSpan.FromMinutes(10)).Subtract(new DateTime(1970,1,1,0,0,0, DateTimeKind.Utc)).TotalSeconds) },
Expand Down

0 comments on commit f19f3f3

Please sign in to comment.