From ce617c62617c838f27a0ff27f573ab7682d8e837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robson=20Ten=C3=B3rio?= Date: Tue, 28 Aug 2018 01:12:34 -0300 Subject: [PATCH] Fix buildPublicKey() --- src/Token.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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