AmaanRS / CampusConnect

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

Send new JWT token #3

Open AmaanRS opened 3 months ago

AmaanRS commented 3 months ago

The new jwt token includes email,position,accountType, so the email will always be same but position, accountType can be changed after using update,create api, so if such changes happen the a new jwt token should be sent with updated data

AmaanRS commented 3 months ago

Read #8 for new idea on this which is better

AmaanRS commented 3 months ago

Only admin can change the data of other documents so if new jwt token is sent on change the admin will get the jwt of other users which is a bug so watch #8