Laravel AT Protocol Client (alpha & unstable)

Update service provider and facade to use handleOrDid parameter

Changed files
+8 -8
src
+6 -6
src/AtpClientServiceProvider.php
··· 70 70 $this->app = $app; 71 71 } 72 72 73 - public function as(string $identifier): AtpClient 73 + public function as(string $handleOrDid): AtpClient 74 74 { 75 75 return new AtpClient( 76 76 $this->app->make(SessionManager::class), 77 - $identifier 77 + $handleOrDid 78 78 ); 79 79 } 80 80 81 - public function login(string $identifier, string $password): AtpClient 81 + public function login(string $handleOrDid, string $password): AtpClient 82 82 { 83 - $session = $this->app->make(SessionManager::class) 84 - ->fromAppPassword($identifier, $password); 83 + $this->app->make(SessionManager::class) 84 + ->fromAppPassword($handleOrDid, $password); 85 85 86 - return $this->as($identifier); 86 + return $this->as($handleOrDid); 87 87 } 88 88 89 89 public function oauth(): OAuthEngine
+2 -2
src/Facades/Atp.php
··· 8 8 use SocialDept\AtpClient\Contracts\CredentialProvider; 9 9 10 10 /** 11 - * @method static AtpClient as(string $identifier) 12 - * @method static AtpClient login(string $identifier, string $password) 11 + * @method static AtpClient as(string $handleOrDid) 12 + * @method static AtpClient login(string $handleOrDid, string $password) 13 13 * @method static OAuthEngine oauth() 14 14 * @method static void setDefaultProvider(CredentialProvider $provider) 15 15 *