| @@ -262,14 +262,8 @@ | ||
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | // Everything looks good return the decoded token. |
| 265 | 265 | return $decoded_token; |
| 266 | - } catch ( \WCPOS\Vendor\Firebase\JWT\ExpiredException $e ) { | |
| 267 | - return new WP_Error( | |
| 268 | - 'woocommerce_pos_auth_token_expired', | |
| 269 | - 'Token expired', | |
| 270 | - array( 'status' => 403 ) | |
| 271 | - ); | |
| 272 | 266 | } catch ( Exception $e ) { |
| 273 | 267 | // Something is wrong trying to decode the token, send back the error. |
| 274 | 268 | return new WP_Error( |
| 275 | 269 | 'woocommmerce_pos_auth_invalid_token', |