'Symfony rest api error with security.yaml
I'm trying to add an auth system with JWT to my REST API but since I added my system and modified my security.yaml I have those errors:


Solution 1:[1]
make sure of the alignments .. it can be spaces problem
api:
pattern: ^/api
guard:
authenticators:
Solution 2:[2]
Lexik bundle doesn't require anymore guard with symfony 6
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | BADER SEMAH |
| Solution 2 | DylanAumond |
