Whenever a client refreshes his page then send the existing jwt token to an endpoint for getting a new jwt token so that when position,accType is changed using createAdmin,createCommittee the data in token gets updated github does the same for roles
For better efficiency #3 idea can be used for every api except admin api's because the jwt sent will reach the same user and can be programatically changed
Whenever a client refreshes his page then send the existing jwt token to an endpoint for getting a new jwt token so that when position,accType is changed using createAdmin,createCommittee the data in token gets updated github does the same for roles