Skip to content

Commit

Permalink
Merge pull request #2 from robsontenorio/fix-build-public-key
Browse files Browse the repository at this point in the history
Fix buildPublicKey()
  • Loading branch information
robsontenorio authored Aug 28, 2018
2 parents 0b51d03 + ce617c6 commit 6846004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Token.php
Original file line number Diff line number Diff line change
Expand Up @@ -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-----";
}
}

0 comments on commit 6846004

Please sign in to comment.