Skip to main content

Guards

The project has two guards:

  • BearerGuard - to verify user authentication; it checks if the user has a valid Json Web Token;
  • PermissionsGuard - to check the authorization of the user; it checks whether the user has the permissions to access a specific resource (this information is also extracted from the Json Web Token).