diff --git a/src/Token.php b/src/Token.php index b2cd038..184648a 100644 --- a/src/Token.php +++ b/src/Token.php @@ -26,6 +26,6 @@ public static function decode(string $token = null, string $publicKey) */ private static function buildPublicKey(string $key) { - return "-----BEGIN PUBLIC KEY-----\n{$key}\n-----END PUBLIC KEY-----"; + return "-----BEGIN PUBLIC KEY-----\n" . wordwrap($key, 64, "\n", true) . "\n-----END PUBLIC KEY-----"; } } \ No newline at end of file