Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Bizley committed Feb 27, 2023
1 parent 81a92a6 commit 89cf7fb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions src/Jwt.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ class Jwt extends Component
public const EDDSA = 'EdDSA';
public const BLAKE2B = 'BLAKE2B';

public const STORE_IN_MEMORY = 'in_memory';

public const METHOD_PLAIN = 'plain';
public const METHOD_BASE64 = 'base64';
public const METHOD_FILE = 'file';
Expand All @@ -60,7 +58,6 @@ class Jwt extends Component
public const ASYMMETRIC = 'asymmetric';

public const KEY = 'key';
public const STORE = 'store';
public const METHOD = 'method';
public const PASSPHRASE = 'passphrase';

Expand All @@ -79,7 +76,7 @@ class Jwt extends Component
* 'method' => Jwt::METHOD_PLAIN,
* 'passphrase' => '',
* ]
* In case a simple string is provided and it does start with 'file://' (direct file path) or '@' (Yii alias)
* In case a simple string is provided, and it does start with 'file://' (direct file path) or '@' (Yii alias)
* the following configuration is assumed:
* [
* 'key' => // the original given value,
Expand Down
1 change: 0 additions & 1 deletion tests/SignerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ public static function providerForSigners(): iterable
'signer' => Jwt::RS256,
'signingKey' => [
Jwt::KEY => 'file://' . __DIR__ . '/data/rs256.key',
Jwt::STORE => Jwt::STORE_IN_MEMORY,
Jwt::METHOD => Jwt::METHOD_FILE,
],
'verifyingKey' => 'file://' . __DIR__ . '/data/rs256.key.pub',
Expand Down

0 comments on commit 89cf7fb

Please sign in to comment.