Skip to content

Commit 495396b

Browse files
authored
Merge pull request #5 from AnonymousDotNet/lida_dev
Add User Phone
2 parents a16602a + 79fa124 commit 495396b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Infrastructure/BotSharp.Core/Users/Services/UserService.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ private string GenerateJwtToken(User user)
192192
new Claim(JwtRegisteredClaimNames.FamilyName, user?.LastName ?? string.Empty),
193193
new Claim("source", user.Source),
194194
new Claim("external_id", user.ExternalId ?? string.Empty),
195-
new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString())
195+
new Claim(JwtRegisteredClaimNames.Jti, Guid.NewGuid().ToString()),
196+
new Claim("phone", user.Phone ?? string.Empty)
196197
};
197198

198199
var validators = _services.GetServices<IAuthenticationHook>();

0 commit comments

Comments
 (0)