add roles to jwt claims
All checks were successful
Build and Deploy API / build-and-deploy (push) Successful in 9s

This commit is contained in:
2026-04-21 20:32:48 -05:00
parent 500961be07
commit ffdf997929
2 changed files with 11 additions and 4 deletions

View File

@@ -97,7 +97,7 @@ public class AuthController : ControllerBase {
User? user = await jwt_.GetUser(storedToken.UserId);
if(user == null) return NotFound();
string? newAccessToken = jwt_.GenerateJwt(user);
string? newAccessToken = await jwt_.GenerateJwt(user);
if(newAccessToken == null) return NotFound();
string newRefreshToken = jwt_.GenerateRefreshToken();