slotlist / slotlist-backend

Backend of slotlist.info, an ArmA 3 mission planning and slotlist management tool
https://slotlist.info
MIT License
14 stars 6 forks source link

Refresh JWTs for permission changes #12

Closed MorpheusXAUT closed 7 years ago

MorpheusXAUT commented 7 years ago

Changes to permissions (such as creating a mission or a community) currently require the user to manually refresh their JWT or relog since the client-side permissions are not updated automatically (a user can thus theoretically edit a mission in the backend, but the frontend hides the required elements).

The client currently already checks every response for an optional token payload value, replacing the current JWT with a new one if provided. Thus, the backend would only need to regenerate the user's JWT and return in the with new content details after creation.


Tasks