handleAuthError method

Future<void> handleAuthError()

Implementation

Future<void> handleAuthError() async {
  final onAuthError = flourish.onAuthError;
  if (onAuthError != null) return onAuthError(context);
  await Navigator.pushReplacement(
    context,
    MaterialPageRoute(
      builder: (context) => AuthErrorPage(flourish: flourish),
    ),
  );
}