From 62edaac6d61e492aaab4f507edcdf14ea5b86b95 Mon Sep 17 00:00:00 2001 From: Kilderson Sena Date: Sun, 24 Dec 2023 11:14:20 -0300 Subject: [PATCH] migration to new owner changes --- README.md | 6 +++--- composer.json | 7 ++++--- src/JWTPayload.php | 2 +- src/JWTSignatureBehavior.php | 4 ++-- src/JWTTools.php | 4 ++-- tests/JWTPayloadTest.php | 2 +- tests/JWTToolsTest.php | 2 +- 7 files changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 7752c09..c992c84 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ If all ok, at this point you're able to authenticate with a valid JWT Token. You can use the [JWTTools](./src/JWTTools.php) methods to make specific things in your project. See some examples below: ```php -use Dersonsena\JWTTools\JWTTools; +use AstrotechLabs\JWTTools\JWTTools; $jwtTools = JWTTools::build('my-secret-key'); @@ -222,7 +222,7 @@ Array You can insert the active record attributes in your payload using `withModel()` method, like this: ```php -use Dersonsena\JWTTools\JWTTools; +use AstrotechLabs\JWTTools\JWTTools; $user = app\models\User::findOne(2); @@ -258,7 +258,7 @@ The `sub` property is automatically override to `$model->getPrimaryKey()` value, You can change the JWT Properties (such as `iss`, `aud` etc) adding an array in second method parameter, as below: ```php -use Dersonsena\JWTTools\JWTTools; +use AstrotechLabs\JWTTools\JWTTools; $payload = JWTTools::build('my-secret-key', [ 'algorithm' => 'ES256', diff --git a/composer.json b/composer.json index fb89295..f5430f0 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "dersonsena/yii2-jwt-tools", + "name": "astrotechlabs/yii2-jwt-tools", "type": "yii2-extension", "description": "An easy way to configure JWT authentication and validation on Yii Framework 2 Projects", "license": "MIT", @@ -21,13 +21,14 @@ "authors": [ { "name": "Kilderson Sena", - "email": "dersonsena@gmail.com", + "email": "kilderson@astrotech.solutions", "role": "Developer" } ], "autoload": { "psr-4": { - "Dersonsena\\JWTTools\\": "src" + "DersonSena\\JWTTools\\": "src", + "AstrotechLabs\\JWTTools\\": "src" } }, "autoload-dev": { diff --git a/src/JWTPayload.php b/src/JWTPayload.php index 098fba8..7306798 100644 --- a/src/JWTPayload.php +++ b/src/JWTPayload.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Dersonsena\JWTTools; +namespace AstrotechLabs\JWTTools; use DateInterval; use DateTime; diff --git a/src/JWTSignatureBehavior.php b/src/JWTSignatureBehavior.php index 91eb288..99d0194 100644 --- a/src/JWTSignatureBehavior.php +++ b/src/JWTSignatureBehavior.php @@ -1,8 +1,8 @@