title: Restricted routes JWT
body: <p>I am trying to build an application where you have to login and in which users can join private groups. I understand the login part using JWT but I can't figure out how to restrict users from joining the private groups until they have been accepted by the group admin. When in the group they would get access to various functionalities such as posting question within that group but ONLY if they're accepted.</p>
  <p>any resources you could point me to would be appreciated</p>