AmaanRS / CampusConnect

CampusConnect project started in my Third Year of Engineering and became Fourth Year's final project
0 stars 0 forks source link

Refresh page for new jwt token #8

Open AmaanRS opened 1 month ago

AmaanRS commented 1 month ago

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

AmaanRS commented 1 month ago

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