mirror of
https://github.com/anikeen-com/id.git
synced 2026-11-01 21:29:32 +00:00
24 lines
472 B
PHP
24 lines
472 B
PHP
<?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);
|
|
}
|
|
}
|