tymondesigns / jwt-auth

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

Login with different credentials #1299

Open ameya-woxi opened 7 years ago

ameya-woxi commented 7 years ago

Hello, I am new to lumen and to this package.. I have install Lumen 5.4. I have integrated this package successfully in my project. I wanted to know, is there any way by which I will be able to login with credentials other than email and password. My projects requirement is that user should be able to login with mobile and otp. So please guide me to use this package. Thank you....

catalinux commented 7 years ago

Do you mean generating a jwt? You can generate it in a controller checking what ever data you want

mohsenmehri6101 commented 1 year ago

@catalinux . but how . i,m want after otp-confirm create token and send from user.how ??