The command biig:jwt:generate
is available to generate a JWT token for a user (dev environment).
The User model must implement Symfony\Component\Security\Core\User\UserInterface
The User repository must implement Biig\Component\User\Persistence\RepositoryInterface
Define the authenticators you need in your services_dev.yml file.
services:
_defaults:
autowire: true
autoconfigure: true
public: false
Biig\Component\User\Jwt\JwtGeneratorInterface:
alias: App\Jwt\JwtGeneratorToken
Biig\Component\User\Persistence\RepositoryInterface:
alias: App\Repository\UserRepository