src/Synapse/SocialLogin/SocialLoginService.php
public function userHasSocialLoginWithProvider($provider, $user)
    {
        return (bool) $this->socialLoginMapper->findBy([
            'provider' => $provider,
            'user_id'  => $user->getId()
        ]);
    }
public function userHasSocialLoginWithProvider($provider, $user)
    {
        return (bool) $this->socialLoginMapper->findBy([
            'provider' => $provider,
            'user_id'  => $user->getId()
        ]);
    }
public function userHasSocialLoginWithProvider ( $ provider , $ user ) { return ( bool ) $ this -> socialLoginMapper -> findBy ( [ 'provider' => $ provider , 'user_id' => $ user -> getId ( ) ] ) ; }
Determine if a given user has a social login linked with a given provider

@param  string $provider
@param  string $user
@return bool
Determine if a given user has a social login linked with a given provider