mirror of
https://github.com/elyby/accounts.git
synced 2024-12-05 04:58:56 +05:30
45c2ed601d
Refactor all JWT-related components Replace RS256 with ES256 as a preferred JWT algorithm
20 lines
340 B
PHP
20 lines
340 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace api\components\Tokens\Algorithms;
|
|
|
|
use Lcobucci\JWT\Signer;
|
|
use Lcobucci\JWT\Signer\Key;
|
|
|
|
interface AlgorithmInterface {
|
|
|
|
public function getAlgorithmId(): string;
|
|
|
|
public function getSigner(): Signer;
|
|
|
|
public function getPrivateKey(): Key;
|
|
|
|
public function getPublicKey(): Key;
|
|
|
|
}
|