lundi 5 octobre 2020

How to use laravel passport with customer guard in laravel 5.8

We are using laravel passport . It works fine with default login. But we have created another login for customer. name of guard is customer so we are trying to use this URL

/customer/oauth/authorize?client_id=3&redirect_uri=http://abc/callback&response_type=code

to redirect user but it is not working .

We have searched on stackoverflow They told a method . that we have change our AuthServiceProvider In that answer they asked to add this line in AuthServiceProvider

Passport::routes(null, ['prefix' => 'customer/oauth']);

But this method is not working . What could be the reason?

We think that Laravel passport is only work with default guard web or auth



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2SqCr4W
via IFTTT

Aucun commentaire:

Enregistrer un commentaire