Something went wrong. Try again.
Laravel AT Protocol Client (alpha & unstable)
Something went wrong. Try again.
524 B · 21 lines
PHP
at dev
12345678910111213141516171819202122<?php
namespace SocialDept\AtpClient\Auth;
use InvalidArgumentException;use SocialDept\AtpClient\Crypto\P256;
class OAuthKey extends P256{ /** * Load OAuth key from configuration */ public static function load(?string $private = null): static { $private ??= config('client.oauth.private_key');
throw_if(empty($private), InvalidArgumentException::class, 'OAuth private key not configured. Run: php artisan atp-client:generate-key');
return parent::load($private); }}