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
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
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