I just did a composer update on our newly upgraded Laravel 9.x app which is using the Auth0 package provided by Auth0. It’s suddenly broken. Can someone offer any insight?
Any use of the Auth:: facade is now throwing this:
@jasper1 Well, that’s my problem. I already have the updated laravel auth0 package.
I’m finding anywhere the Auth:: facade is used now throws this undefined array key error.
Auth0\Laravel\Auth0 no longer requires a session configuration for stateless strategies, restoring previous behavior. #317 (evansims)
The SDK now requires ^3.0 of the psr/cache dependency, to accomodate breaking changes made in the upstream interface (typed parameters and return types) for PHP 8.0+. #316 (evansims)
That may help as it seems your version of Auth0 login is older.
Ok, so I see that my composer.json references auth0/login version as “^7.1”. I had assumed that would simply ensure I have the latest higher than 7.1.
The doc you’ve referenced clearly indicates that the latest is 7.2.1 with 7.2 being release just a few days before that. I’m sure that’s my problem.
However, I’d like to understand how I missed a necessary step to avoid this breakage.
Do I need to explicitly define auth0/login to be 7.2.1 in order to receive it in a ‘composer update’ command?
Auth0 could simply have missed a step causing issues with your version too and then the new version should be fine where they restored behavior from before that version.
What version do you have in composer.lock anyways?