mardi 11 juillet 2017

Changing The Laravel Passport/OAuth-Server Responses

I'm building an API in Laravel 5.4, using Laravel Passport 3 for authentication. All of my API methods return a set of values that are always returned, success, errors (if there are any errors) etc.

I've changed the response of a \Illuminate\Auth\AuthenticationException throws, to fit with the rest of my app, however I'm not sure how to change the response of various token grant responses, without doing something horrible like editing the vendor files.



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

Aucun commentaire:

Enregistrer un commentaire