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
229 stars 56 forks source link

Authentication fails no matter what #111

Closed RickMartens closed 3 years ago

RickMartens commented 3 years ago

The login function always returns a authentication exception explaining the password or username is incorrect. The .env file contains the right client and client key, I've followed your guide on https://dev.to/joselfonseca/graphql-auth-with-passport-and-lighthouse-php-14g5 and triple checked if I've done every check. A direct request to the server, trying to log in through Laravel Passport does work with the same login credentials.

joselfonseca commented 3 years ago

Can you provide a repo with the replicated issue? We are running this in many projects without any issues.

RickMartens commented 3 years ago

A php artisan config:cache fixed the problem, thanks for the quick reply anyways!