joselfonseca / lighthouse-graphql-passport-auth

Add GraphQL mutations to get tokens from passport for https://lighthouse-php.com/
https://lighthouse-php-auth.com/
MIT License
231 stars 55 forks source link

Hardcoded User model from config #122

Closed webard closed 3 years ago

webard commented 3 years ago

https://github.com/joselfonseca/lighthouse-graphql-passport-auth/blob/3da831efbbab68bf0c3b859c7641f4c2300ca060/src/GraphQL/Mutations/SocialLogin.php#L28

Sorry, maybe I don't understand idea, but why in SocialLogin and VerifyEmail you use hardcoded config auth.providers.users.model to determine User model, and in other classes there is makeAuthModelInstance method? There is a problem when I use e.g. "customers" instead of "users" (part of config path).