getSocialLoginByProvider method
Implementation
SocialLogin getSocialLoginByProvider(ProviderEnum provider) {
final socialLogin = firstWhereOrNull(
(element) => element.type.provider == provider,
);
if (socialLogin == null) {
throw LoginProviderNotFoundException(
'SocialLogin not found for ${provider.name}\nMake sure you have added the SocialLogin to the list of SocialLogins in the AuthCubit',
);
}
return socialLogin;
}