Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After update from SF5.0 to 5.1 problem with RefreshTokenManager #218

Closed
jarekkowol opened this issue Dec 12, 2020 · 5 comments
Closed

After update from SF5.0 to 5.1 problem with RefreshTokenManager #218

jarekkowol opened this issue Dec 12, 2020 · 5 comments

Comments

@jarekkowol
Copy link

After symfony update, i get this error:

Argument 1 passed to Gesdinet\\JWTRefreshTokenBundle\\Doctrine\\RefreshTokenManager::__construct() must be an instance of Doctrine\\Common\\Persistence\\ObjectManager, instance of ContainerSBxRwEn\\EntityManager_9a5be93 given, called in \/Users\/jaroslawkowol\/PhpstormProjects\/sarelite-main\/var\/cache\/dev\/ContainerSBxRwEn\/App_KernelDevDebugContainer.php on line 2806

Who will help?

@fd6130
Copy link
Contributor

fd6130 commented Dec 12, 2020

Clear your cache?

@crashkita
Copy link

I have a same error:
Argument 1 passed to Gesdinet\JWTRefreshTokenBundle\Doctrine\RefreshTokenManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of Doctrine\ORM\EntityManager given

@fd6130
Copy link
Contributor

fd6130 commented Dec 13, 2020

Have a look at #200

@ganeshbala2008
Copy link

@jarekkowol
The error is due to the custom user provider is set NULL. we can solve it,
By running the below command you will get the concrete class of your custom user provider.
php bin/console debug:container

Then add it on the configuration of gesdinet refresh token

gesdinet_jwt_refresh_token:
  user_provider: security.user.provider.concrete.app_user_provider

@fd6130
Copy link
Contributor

fd6130 commented Dec 14, 2020

You may refer to Config UserProvider section in docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants