mirror of
https://github.com/anikeen-com/id.git
synced 2026-11-03 14:19:31 +00:00
Add ManagesSocialiteUsers concern and resources for listing third-party connections
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
a7ec7aa908
commit
9c3f9344a0
4 files changed
+58
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Anikeen\Id\Concerns;
|
||||
|
||||
use Anikeen\Id\ApiOperations\Get;
|
||||
use Anikeen\Id\Resources\SocialiteUsers;
|
||||
use Throwable;
|
||||
|
||||
trait ManagesSocialiteUsers
|
||||
{
|
||||
use Get;
|
||||
|
||||
/**
|
||||
* Get all socialite connections for the authenticated user.
|
||||
*
|
||||
* @throws Throwable
|
||||
*/
|
||||
public function socialiteUsers(): SocialiteUsers
|
||||
{
|
||||
return SocialiteUsers::builder(fn() => $this->get('v1/user/socialite-users'))
|
||||
->setParent($this);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user