signIn method

  1. @override
Future<SocialAuthResult?> signIn(
  1. SocialProvider provider
)
override

Signs in with the specified provider.

Returns null when the user cancels.

Implementation

@override
Future<SocialAuthResult?> signIn(SocialProvider provider) async {
  switch (provider) {
    case SocialProvider.google:
      return _signInWithGoogle();
    case SocialProvider.apple:
      return _signInWithApple();
    case SocialProvider.github:
      return _signInWithGithub();
    case SocialProvider.facebook:
      return _signInWithFacebook();
  }
}