Tmeister / wp-api-jwt-auth

A simple plugin to add JSON Web Token (JWT) Authentication to WP REST API
GNU General Public License v2.0
549 stars 159 forks source link

how to set jwt_auth_expire in token creation request #213

Open MaurizioB84 opened 3 years ago

MaurizioB84 commented 3 years ago

Hello, I understand we can extend or reduce the validity time of the token generated, but I don't understand in which way I can set it.

After some tests with a short validity the token still works. can you please give me an example of right request? I use postman for that with in the body username and password and standard header parameters + jwt_auth_expire with value in second.

pesseba commented 3 years ago

follow the other commentary: https://github.com/Tmeister/wp-api-jwt-auth/issues/214