We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce586a commit 9c9623bCopy full SHA for 9c9623b
src/VAPID.php
@@ -54,7 +54,7 @@ public static function validate(array $vapid): array
54
throw new \ErrorException('Failed to convert VAPID public key from hexadecimal to binary');
55
}
56
$vapid['publicKey'] = base64_encode($binaryPublicKey);
57
- $vapid['privateKey'] = base64_encode(str_pad(Base64Url::decode($jwk->get('d')), 2 * self::PRIVATE_KEY_LENGTH, '0', STR_PAD_LEFT));
+ $vapid['privateKey'] = base64_encode(str_pad(Base64Url::decode($jwk->get('d')), self::PRIVATE_KEY_LENGTH, '0', STR_PAD_LEFT));
58
59
60
if (!isset($vapid['publicKey'])) {
0 commit comments