forked from tuupola/slim-jwt-auth
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDecoderInterface.php
More file actions
27 lines (23 loc) · 757 Bytes
/
DecoderInterface.php
File metadata and controls
27 lines (23 loc) · 757 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
declare(strict_types=1);
namespace JimTools\JwtAuth\Decoder;
use JimTools\JwtAuth\Exceptions\BeforeValidException;
use JimTools\JwtAuth\Exceptions\DomainException;
use JimTools\JwtAuth\Exceptions\ExpiredException;
use JimTools\JwtAuth\Exceptions\InvalidArgumentException;
use JimTools\JwtAuth\Exceptions\SignatureInvalidException;
use JimTools\JwtAuth\Exceptions\UnexpectedValueException;
interface DecoderInterface
{
/**
* @return array<string, mixed>
*
* @throws InvalidArgumentException
* @throws DomainException
* @throws SignatureInvalidException
* @throws BeforeValidException
* @throws ExpiredException
* @throws UnexpectedValueException
*/
public function decode(string $jwt): array;
}