HasRole checks if the user has the specified role in their JWT token.
It retrieves the JWT claims from the context and checks if the user has the required role.
Only types that implement jwtclaims.ClaimsWithRoles are supported (which includes *jwtclaims.Claims).