我使用 lexikjwtauthenticationBundle 收到以下错误
Unrecognized options "secret_key, public_key" under "lexik_jwt_authentication"
我的配置类似于
lexik_jwt_authentication:
secret_key: '%jwt_private_key_path%' # required for token creation
public_key: '%jwt_public_key_path%' # required for token verification
pass_phrase: '%jwt_key_pass_phrase%' # required for token creation
token_ttl: '%jwt_token_ttl%'
而parameters.yml有以下参数
jwt_private_key_path: '%kernel.root_dir%/config/jwt/private.pem'
jwt_public_key_path: '%kernel.root_dir%/config/jwt/public.pem'
jwt_key_pass_phrase: '*******'
jwt_token_ttl: 3600