diff --git a/.codecov.yml b/.codecov.yml new file mode 100644 index 0000000..ce33bf1 --- /dev/null +++ b/.codecov.yml @@ -0,0 +1 @@ +comment: off \ No newline at end of file diff --git a/.gitignore b/.gitignore index ba32257..4e70a4f 100644 --- a/.gitignore +++ b/.gitignore @@ -79,3 +79,4 @@ $RECYCLE.BIN/ # End of https://www.gitignore.io/api/osx,linux,windows,composer +composer.lock diff --git a/README.md b/README.md index 952e838..0474398 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
- +
diff --git a/classes/AuthAdapter.php b/classes/AuthAdapter.php index 4cd744b..dd0ee3d 100644 --- a/classes/AuthAdapter.php +++ b/classes/AuthAdapter.php @@ -4,7 +4,7 @@ use Winter\Storm\Auth\AuthException; use RLuders\JWTAuth\Classes\AuthManager; -use Tymon\JWTAuth\Contracts\Providers\Auth as AuthInterface; +use PHPOpenSourceSaver\JWTAuth\Contracts\Providers\Auth as AuthInterface; /** * {@inheritDoc} diff --git a/classes/JWTAuth.php b/classes/JWTAuth.php index 0df0b11..ed5a026 100644 --- a/classes/JWTAuth.php +++ b/classes/JWTAuth.php @@ -2,7 +2,7 @@ namespace RLuders\JWTAuth\Classes; -use Tymon\JWTAuth\JWTAuth as BaseJWTAuth; +use PHPOpenSourceSaver\JWTAuth\JWTAuth as BaseJWTAuth; class JWTAuth extends BaseJWTAuth { diff --git a/composer.json b/composer.json index 2109f3a..988d12a 100644 --- a/composer.json +++ b/composer.json @@ -31,8 +31,13 @@ "php": ">=7.0", "composer/installers": "~1.0", "winter/wn-user-plugin": "^2.0", - "tymon/jwt-auth": "~0.5|^1.0" + "php-open-source-saver/jwt-auth": "^2.1" }, "minimum-stability": "dev", - "prefer-stable": true -} \ No newline at end of file + "prefer-stable": true, + "config": { + "allow-plugins": { + "composer/installers": true + } + } +} diff --git a/config/jwt.php b/config/jwt.php index e6a4b50..00ae485 100644 --- a/config/jwt.php +++ b/config/jwt.php @@ -22,7 +22,7 @@ | */ - 'jwt' => Tymon\JWTAuth\Providers\JWT\Namshi::class, + 'jwt' => PHPOpenSourceSaver\JWTAuth\Providers\JWT\Namshi::class, /* |-------------------------------------------------------------------------- @@ -44,7 +44,7 @@ | */ - 'storage' => Tymon\JWTAuth\Providers\Storage\Illuminate::class, + 'storage' => PHPOpenSourceSaver\JWTAuth\Providers\Storage\Illuminate::class, ], diff --git a/exceptions/JsonValidationException.php b/exceptions/JsonValidationException.php index 1eb36f3..b381220 100644 --- a/exceptions/JsonValidationException.php +++ b/exceptions/JsonValidationException.php @@ -21,7 +21,7 @@ public function getHeaders(): array ]; } - public function toArray() + public function toArray(): array { return ['errors' => $this->getErrors()]; } diff --git a/http/controllers/LoginController.php b/http/controllers/LoginController.php index 1ad32a1..e7a86a0 100644 --- a/http/controllers/LoginController.php +++ b/http/controllers/LoginController.php @@ -6,7 +6,7 @@ use Illuminate\Http\Response; use Illuminate\Routing\Controller; use RLuders\JWTAuth\Classes\JWTAuth; -use Tymon\JWTAuth\Exceptions\JWTException; +use PHPOpenSourceSaver\JWTAuth\Exceptions\JWTException; use RLuders\JWTAuth\Http\Requests\LoginRequest; class LoginController extends Controller diff --git a/http/controllers/RefreshTokenController.php b/http/controllers/RefreshTokenController.php index d406ca5..b8cea0c 100644 --- a/http/controllers/RefreshTokenController.php +++ b/http/controllers/RefreshTokenController.php @@ -6,7 +6,7 @@ use Illuminate\Routing\Controller; use RLuders\JWTAuth\Classes\JWTAuth; use RLuders\JWTAuth\Http\Requests\TokenRequest; -use Tymon\JWTAuth\Exceptions\TokenBlacklistedException; +use PHPOpenSourceSaver\JWTAuth\Exceptions\TokenBlacklistedException; class RefreshTokenController extends Controller { diff --git a/jwt.png b/jwt.png new file mode 100644 index 0000000..586d67a Binary files /dev/null and b/jwt.png differ diff --git a/models/User.php b/models/User.php index 2136fa1..35e5d69 100644 --- a/models/User.php +++ b/models/User.php @@ -2,7 +2,7 @@ namespace RLuders\JWTAuth\Models; -use Tymon\JWTAuth\Contracts\JWTSubject; +use PHPOpenSourceSaver\JWTAuth\Contracts\JWTSubject; use Winter\User\Models\User as BaseUser; class User extends BaseUser implements JWTSubject diff --git a/providers/AuthServiceProvider.php b/providers/AuthServiceProvider.php index b9e5032..c7824aa 100644 --- a/providers/AuthServiceProvider.php +++ b/providers/AuthServiceProvider.php @@ -5,7 +5,7 @@ use Config; use Response; use Winter\User\Models\User; -use Tymon\JWTAuth\Providers\AbstractServiceProvider; +use PHPOpenSourceSaver\JWTAuth\Providers\AbstractServiceProvider; use RLuders\JWTAuth\Models\Settings as PluginSettings; use RLuders\JWTAuth\Exceptions\JsonValidationException; diff --git a/updates/version.yaml b/updates/version.yaml index 02f0d5b..60e1383 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -60,3 +60,6 @@ - Updates dependencies - Fix language support - Adds French language support +1.4.5: + - Updates dependencies - replaced tymon/jwt-auth with php-open-source-saver/jwt-auth + - Adds jwt-auth related refactoring \ No newline at end of file