forked from tymondesigns/jwt-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52ac176
commit c1150a7
Showing
3 changed files
with
78 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of jwt-auth. | ||
* | ||
* (c) Sean Tymon <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Tymon\JWTAuth\Providers\JWT; | ||
|
||
use Exception; | ||
use Tymon\JWTAuth\Contracts\Providers\JWT; | ||
use Tymon\JWTAuth\Exceptions\JWTException; | ||
use Tymon\JWTAuth\Exceptions\TokenInvalidException; | ||
|
||
class Spomky extends Provider implements JWT | ||
{ | ||
/** | ||
* @param string $secret | ||
* @param string $algo | ||
* @param array $keys | ||
* @param string|null $driver | ||
* | ||
* @return void | ||
*/ | ||
public function __construct($secret, $algo, array $keys = [], $driver = null) | ||
{ | ||
parent::__construct($secret, $keys, $algo); | ||
} | ||
|
||
/** | ||
* Create a JSON Web Token. | ||
* | ||
* @param array $payload | ||
* | ||
* @throws \Tymon\JWTAuth\Exceptions\JWTException | ||
* | ||
* @return string | ||
*/ | ||
public function encode(array $payload) | ||
{ | ||
// | ||
} | ||
|
||
/** | ||
* Decode a JSON Web Token. | ||
* | ||
* @param string $token | ||
* | ||
* @throws \Tymon\JWTAuth\Exceptions\JWTException | ||
* | ||
* @return array | ||
*/ | ||
public function decode($token) | ||
{ | ||
// | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters