Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Robson Tenório authored and Robson Tenório committed Oct 27, 2018
2 parents 3ffcf27 + 6846004 commit 0d2b8f9
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 0d2b8f9

Please sign in to comment.