lundi 23 avril 2018

How to send two Authorization tokens in Postman? Laravel 5

All the routes in my API endpoints need JWT. However, I have a route that also require Laravel Passport token.

//Business
Route::group(['prefix' => 'business', 'middleware' => ['jwt.auth']], function () {
    Route::post('/user', 'UsersController@store');
    Route::post('/login', 'UsersController@login');
    Route::get('/user/{id}', 'UsersController@show')->middleware('auth:api');
});

How can I add two authorisation tokens in Postman in order to test the show method



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire