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

Create a unique namespace to load the JWT & Key classes of this plugin #252

Closed marioshtika closed 1 year ago

marioshtika commented 1 year ago

Related to issue #247

This pull request extends the JWT & Key classes and adds a new unique namespace to be used on the class-jwt-auth-public.php file

Like this:

use Tmeister\Firebase\JWT\JWT;
use Tmeister\Firebase\JWT\Key;
Tmeister commented 1 year ago

Thank you, @marioshtika; this fixes the issue. All my tests are looking good.

However, I'll close this PR and use your changes in #253, where I change the class name and add comments, etc.

Thanks again.