Commit a029e1d6 authored by Almouhannad's avatar Almouhannad

(B) Fix JWT provider

parent 13b39d39
......@@ -22,14 +22,14 @@ public sealed class JWTProvider : IJWTProvider
{
var claims = new List<Claim>
{
new("Id", user.Id.ToString()),
new(ClaimTypes.Name, user.UserName),
new(ClaimTypes.Role, user.Role.Name)
new("id", user.Id.ToString()),
new("userName", user.UserName),
new("role", user.Role.Name)
};
if (personalInfo is not null)
{
claims.Add(new Claim("FullName", personalInfo.FullName));
claims.Add(new Claim("fullName", personalInfo.FullName));
}
var signingCredentials = new SigningCredentials(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment