aboutsummaryrefslogtreecommitdiff
path: root/API/Service/UserService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'API/Service/UserService.cs')
-rw-r--r--API/Service/UserService.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/API/Service/UserService.cs b/API/Service/UserService.cs
index d480bec..a693a93 100644
--- a/API/Service/UserService.cs
+++ b/API/Service/UserService.cs
@@ -47,7 +47,7 @@ namespace API.Service
new Claim(ClaimTypes.Role, user.Role) // Authorize user by role
}),
Expires = DateTime.UtcNow.AddDays(7),
- SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.Sha512)
+ SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha512Signature)
};
var tokenHandler = new JwtSecurityTokenHandler();