Skip to content

Commit d5cf9ac

Browse files
Merge pull request #6 from matthewmnewman/matthewmnewman-JWT
Update JWT Provider
2 parents d024640 + 23728fc commit d5cf9ac

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
"mockery/mockery": "~1.0",
3434
"phpunit/phpunit": "^8.5|^9.0",
3535
"squizlabs/php_codesniffer": "~2.0",
36-
"tymon/jwt-auth": "1.0.*"
36+
"php-open-source-saver/jwt-auth": "^1.4",
3737
},
3838
"suggest": {
39-
"tymon/jwt-auth": "Protect your API with JSON Web Tokens."
39+
"php-open-source-saver/jwt-auth": "Protect your API with JSON Web Tokens."
4040
},
4141
"autoload": {
4242
"psr-4": {

src/Auth/Provider/JWT.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,25 +3,25 @@
33
namespace Dingo\Api\Auth\Provider;
44

55
use Exception;
6-
use Tymon\JWTAuth\JWTAuth;
6+
use PHPOpenSourceSaver\JWTAuth\JWTAuth;
77
use Dingo\Api\Routing\Route;
88
use Illuminate\Http\Request;
9-
use Tymon\JWTAuth\Exceptions\JWTException;
9+
use PHPOpenSourceSaver\JWTAuth\Exceptions\JWTException;
1010
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
1111

1212
class JWT extends Authorization
1313
{
1414
/**
1515
* The JWTAuth instance.
1616
*
17-
* @var \Tymon\JWTAuth\JWTAuth
17+
* @var \PHPOpenSourceSaver\JWTAuth\JWTAuth
1818
*/
1919
protected $auth;
2020

2121
/**
2222
* Create a new JWT provider instance.
2323
*
24-
* @param \Tymon\JWTAuth\JWTAuth $auth
24+
* @param \PHPOpenSourceSaver\JWTAuth\JWTAuth $auth
2525
*
2626
* @return void
2727
*/

tests/Auth/Provider/JWTTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use Mockery as m;
1010
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
1111
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;
12-
use Tymon\JWTAuth\Exceptions\JWTException;
12+
use PHPOpenSourceSaver\JWTAuth\Exceptions\JWTException;
1313

1414
class JWTTest extends BaseTestCase
1515
{
@@ -20,7 +20,7 @@ public function setUp(): void
2020
{
2121
parent::setUp();
2222

23-
$this->auth = m::mock('Tymon\JWTAuth\JWTAuth');
23+
$this->auth = m::mock('PHPOpenSourceSaver\JWTAuth\JWTAuth');
2424
$this->provider = new JWT($this->auth);
2525
}
2626

0 commit comments

Comments
 (0)