Closed Fitmavincent closed 3 years ago
Hello, thank you for the issue.
So the dependency is pulled in by Passport
https://github.com/laravel/passport/blob/10.x/composer.json#L30
Can you provide more info on what versions for Passport and this package you have installed? This may be that the version installed does not have the method since it may have been added in a more recent version. I would like to have that information to trace a possible issue or not.
Thank you!
Hi Jose, if you don't mind I call you Jose,
My laravel/passport is in version 10. But I can see my lcobucci/jwt is in 3.0
Thank you.
Alright Jose,
I think I need to do a manual upgrade on the passport then. It might be good to update the documents regarding the laravel/passport version.
My laravel/passport doesn't include the lcobucci/jwt in version 10.0
"require": {
"php": "^7.3",
"ext-json": "*",
"firebase/php-jwt": "^5.0",
"illuminate/auth": "^8.2",
"illuminate/console": "^8.2",
"illuminate/container": "^8.2",
"illuminate/contracts": "^8.2",
"illuminate/cookie": "^8.2",
"illuminate/database": "^8.2",
"illuminate/encryption": "^8.2",
"illuminate/http": "^8.2",
"illuminate/support": "^8.2",
"league/oauth2-server": "^8.1",
"nyholm/psr7": "^1.3",
"phpseclib/phpseclib": "^2.0",
"symfony/psr-http-message-bridge": "^2.0"
},
Alright Jose,
I think I need to do a manual upgrade on the passport then. It might be good to update the documents regarding the laravel/passport version.
My laravel/passport doesn't include the lcobucci/jwt in version 10.0
"require": { "php": "^7.3", "ext-json": "*", "firebase/php-jwt": "^5.0", "illuminate/auth": "^8.2", "illuminate/console": "^8.2", "illuminate/container": "^8.2", "illuminate/contracts": "^8.2", "illuminate/cookie": "^8.2", "illuminate/database": "^8.2", "illuminate/encryption": "^8.2", "illuminate/http": "^8.2", "illuminate/support": "^8.2", "league/oauth2-server": "^8.1", "nyholm/psr7": "^1.3", "phpseclib/phpseclib": "^2.0", "symfony/psr-http-message-bridge": "^2.0" },
The league/oauth2-server
use lcobucci/jwt
.
Alright Jose, I think I need to do a manual upgrade on the passport then. It might be good to update the documents regarding the laravel/passport version. My laravel/passport doesn't include the lcobucci/jwt in version 10.0
"require": { "php": "^7.3", "ext-json": "*", "firebase/php-jwt": "^5.0", "illuminate/auth": "^8.2", "illuminate/console": "^8.2", "illuminate/container": "^8.2", "illuminate/contracts": "^8.2", "illuminate/cookie": "^8.2", "illuminate/database": "^8.2", "illuminate/encryption": "^8.2", "illuminate/http": "^8.2", "illuminate/support": "^8.2", "league/oauth2-server": "^8.1", "nyholm/psr7": "^1.3", "phpseclib/phpseclib": "^2.0", "symfony/psr-http-message-bridge": "^2.0" },
The
league/oauth2-server
uselcobucci/jwt
.
Hmm, I've tried composer install multiple times and lcobucci/jwt
didn't get updated. Anyway, I've updated manually and solved the problem.
Problem:
Error calling RefreshToken mutation
My Investigation
This lighthouse-graphql-passport-auth requires lcobucci/jwt package. But there's no indication or prerequisite stated a composer install of lcobucci/jwt.
Suggested solution:
composer install
"Class 'Lcobucci\\JWT\\Configuration' not found"
when calling refreshToken mutation.Stack trace