mercredi 13 septembre 2017

MethodNotAllowedHttpException When Access Token Expired In Laravel Passport (Password grant type)

I am working with Laravel's Passport library and using password grant type to generate access tokens. The token expiration time has been set to 10 min. Now my problem is that when token gets expired user gets MethodNotAllowedHttpException instead invalid access token response. Please help, here is my api route code.

    Route::group(['middleware' => ['auth:api']], function () {
          Route::get('see_your_progress/{family_id}', 'Api\v1\FamilyController@familyProgress'); 
    });

Please let me know if you need any more clarification.

Thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire