fix : GenerateJwtToken not null

user.ExternalId is null should be string,Empty
This commit is contained in:
geffzhang 2024-02-02 18:49:04 +08:00
parent 592d7a00b6
commit 0116bafbe8

View file

@ -139,7 +139,7 @@ public class UserService : IUserService
new Claim(JwtRegisteredClaimNames.GivenName, user.FirstName),
new Claim(JwtRegisteredClaimNames.FamilyName, user.LastName),
new Claim("source", user.Source),
new Claim("external_id", user.ExternalId),
new Claim("external_id", user.ExternalId??string.Empty),
new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString())
};