Skip to content

Commit

Permalink
Update TokenGenerator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
evansims committed May 30, 2023
1 parent c2bfc69 commit 63163ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Utilities/TokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,8 @@ public static function create(
$keys = self::generateRsaKeyPair();
$headers = array_merge(['kid' => '__test_kid__'], $headers);
$token = self::withRs256($claims, $keys['private'], $headers);
$keys['cert'] = trim(mb_substr($keys['cert'], strpos($keys['cert'], "\n")+1));
$keys['cert'] = str_replace("\n", '', mb_substr($keys['cert'], 0, strrpos($keys['cert'], "\n")));
$keys['cert'] = trim(substr($keys['cert'], strpos($keys['cert'], "\n")+1));
$keys['cert'] = str_replace("\n", '', substr($keys['cert'], 0, strrpos($keys['cert'], "\n")));
}

if ($algorithm === self::ALG_HS256) {
Expand Down

0 comments on commit 63163ef

Please sign in to comment.