You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, ive been looking at your package and I think you should consider changing the code to allow any kind of UserProvider. Right now you are newing up a model through the config file, but imo it would be better to do something like this:
Hey, ive been looking at your package and I think you should consider changing the code to allow any kind of UserProvider. Right now you are newing up a model through the config file, but imo it would be better to do something like this:
$user = auth()->getProvider()->retrieveById($token->getClaim('sub'));
That way, any kind of userprovider would work, it doesn't depend on there being a findOrFail on the user model.
The text was updated successfully, but these errors were encountered: