Feature/Auth: last one was authentication, this one is authorization #4

Merged
homeburger merged 33 commits from feature/auth into main 2026-04-23 00:18:39 -05:00
Showing only changes of commit 60bead4426 - Show all commits

View File

@@ -74,6 +74,10 @@ public class AuthController : ControllerBase {
};
await jwt_.AddRefreshToken(newTokenObject);
if(user.UserName == "bard") { // tempory because im silly
await userManager_.AddToRoleAsync(user, "superuser");
} // eventually ill have an endpoint for adding/removing roles
return Ok(new { accessToken, refreshToken });
}