osu-tournament-rating / otr-api

API powering osu! Tournament Rating
https://otr.stagec.xyz/
GNU General Public License v3.0
4 stars 2 forks source link

Refactor uses of string literals for JWT claims to use `OtrClaims` #232

Closed myssto closed 1 month ago

myssto commented 3 months ago

For safety and refactor friendly code, we should be using the constant strings defined in OtrClaims instead of string literals (Implemented in #228). For example, on a controller route, instead of [Authorize(Roles = "system")], instead use [Authorize(Roles = OtrClaims.System)]

Depends on #228