API Platform allows to easily add a JWT-based authentication to your API using a valid JWT token when a scenario is marked with a @login annotation..