Upon login-success encode both the user as well as the user's roles objects in the JWT. Thus the single-page-application is able to obtain the user's roles from the token and implement its own authorization checks.
Update the existing tests to take into account this new feature.
Upon login-success encode both the user as well as the user's roles objects in the JWT. Thus the single-page-application is able to obtain the user's roles from the token and implement its own authorization checks.
Update the existing tests to take into account this new feature.
Expected work time: 4h