friendship ended with social-app. php is my new best friend
1<?php
2declare(strict_types=1);
3
4namespace Lcobucci\JWT;
5
6use Lcobucci\JWT\Encoding\CannotDecodeContent;
7use Lcobucci\JWT\Token\InvalidTokenStructure;
8use Lcobucci\JWT\Token\UnsupportedHeaderFound;
9
10interface Parser
11{
12 /**
13 * Parses the JWT and returns a token
14 *
15 * @param non-empty-string $jwt
16 *
17 * @throws CannotDecodeContent When something goes wrong while decoding.
18 * @throws InvalidTokenStructure When token string structure is invalid.
19 * @throws UnsupportedHeaderFound When parsed token has an unsupported header.
20 */
21 public function parse(string $jwt): Token;
22}