Skip to content

Instantly share code, notes, and snippets.

@ijoschek
Last active April 28, 2019 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ijoschek/fc449fd5bb570f76093a07b2c5a4519a to your computer and use it in GitHub Desktop.
Save ijoschek/fc449fd5bb570f76093a07b2c5a4519a to your computer and use it in GitHub Desktop.
flutter_auth_tut
//...
Future<Null> logoutWithGoogle() async {
await _auth.signOut();
await _googleSignIn.signOut();
}
Future<Null> deleteUserWithGoogle(FirebaseUser user) async {
await user.delete();
await logoutWithGoogle();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment