usefulteam / jwt-auth

WordPress JSON Web Token Authentication
https://wordpress.org/plugins/jwt-auth/
116 stars 49 forks source link

Fixed refresh token validation error message covers too many cases. #78

Closed sun closed 2 months ago

sun commented 1 year ago

Problem

Details

Proposed solution

  1. Return a different error response for each of the validation cases.

Remaining Todos

dominic-ks commented 1 year ago

@sun looks good to me, though I couldn't actually seem to produce the jwt_auth_invalid_refresh_token error, if I changed the refresh token it just told me it was obsolete.