Reputation: 1079
I'm creating an API with laravel 5.3. "laravel passport" got my attention these days. previously i used tymon/JWT
package to authenticate my users. but i wants to use laravel passport for my new peoject.
So i can use my API for my mobile and web both client.
So ho can i do typical authentication with email and password in laravel passport for web client.
Upvotes: 1
Views: 264
Reputation: 87
Take a look at Password grant token.
But in short you send some form_data to /oauth/token
route and get an access_token
in return and with that token you make your API requests.
Upvotes: 1