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
560 stars 161 forks source link

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

Closed marioshtika closed 2 years ago

marioshtika commented 2 years 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 2 years 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.