Problem
Auth0 Laravel package uses the api_identifier config key, which is the default JWT audience.
See https://github.com/auth0/laravel-auth0/blob/master/src/Auth0/Login/Auth0Service.php#L204
However, Auth0 PHP SDK -which is a dependency of this package- is using the audience config key to create a login URL.
So setting api_identifier in the config, does not add the audience param to the login URL.
Expected behavior?
I'd expect the login URL to include the audience I set in the config file.
Reproduction
Fresh install of the package and following the official docs will cause it.
Solution
It's possible to pass the audience as an additional parameter, and it'll work. However, what's the point of the config then?
I think something like this would make things much easier;
iSerter@011190a
Environment
PHP 8
Laravel 8
auth0/login: 6.4