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 @@