Skip to content

Commit

Permalink
Update AuthenticationService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
medhatelmasry authored Dec 5, 2024
1 parent d2404e8 commit 8751b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Api/Service/AuthenticationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task<Token> RefreshToken(Token tokenDto)

_user = user;

return await CreateToken(populateExp: false);
return await CreateToken(populateExp: true);
}

private SigningCredentials GetSigningCredentials()
Expand Down Expand Up @@ -131,7 +131,7 @@ private ClaimsPrincipal GetPrincipalFromExpriedToken(string token)
ValidateIssuer = true,
ValidateIssuerSigningKey = true,
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(secretKey!)),
ValidateLifetime = true,
ValidateLifetime = false,
ValidIssuer = validIssuer,
ValidAudience = validAudience
};
Expand Down

0 comments on commit 8751b82

Please sign in to comment.