getIdentifier()->identify([SocialIdentifier::CREDENTIAL_KEY => $rawData]); if (!empty($user)) { return new Result($user, Result::SUCCESS); } return new Result(null, Result::FAILURE_IDENTITY_NOT_FOUND); } catch (AccountNotActiveException $e) { return new Result(null, self::FAILURE_ACCOUNT_NOT_ACTIVE); } catch (UserNotActiveException $e) { return new Result(null, self::FAILURE_USER_NOT_ACTIVE); } catch (MissingEmailException $exception) { throw new SocialAuthenticationException(['rawData' => $rawData], null, $exception); } } }