I am using laravel version 5.7. I still use same syntax of routing on other project based on laravel version 5.6. I don't know how to solve this problem
Oct 16, 2018
3
Level 1
Session has expired!?
Hi everybody,
I am using jwt_auth for my route on laravel API. Everything works well with GET method but POST. I always got the message "419 - Sorry, your session has expired. Please refresh and try again. " when using POST method in postman, things didn't happen with GET method.
Here is my route:
Route::prefix('api/v1')->middleware('jwt.auth')->group(function() { Route::get('transactions', 'TransactionController@getTransaction');
Route::get('transactions/{id}', 'TransactionController@getTransactionById')->where('id', '[0-9]+');
Route::post('transactions', 'TransactionController@postTransaction');
});
I am using "Authorization:Bearer {{jwt_token}}" as my request's header. Please let me know how to solve this problem!
Best regards, Hai
Please or to participate in this conversation.