tymondesigns / jwt-auth

🔐 JSON Web Token Authentication for Laravel & Lumen
https://jwt-auth.com
MIT License
11.28k stars 1.55k forks source link

Support for laravel UserProvider and GenericUser #1106

Open pankitgami opened 7 years ago

pankitgami commented 7 years ago

Currently, this package only supports the Model for User. Laravel itself has given the power to a developer to extend its authentication with help of UserProvider and Authenticatable interface.

We can leverage this and create the support for the generic user. This will ease the work of developer using another ORM or Fluent Query Builder.

kofi1995 commented 7 years ago

I'm facing this exact problem and I've raised an issue but looks like nobody cares. I have a multi-auth setup using 2 JWT drivers and authentication only works for the User model, it doesn't work from the other model. At first I thought it was just a bug but upon doing lots of debugging today, I realized the package just supports the User model. Can you help me out @pankitgami?