completeSignup method

Future<bool> completeSignup(
  1. BuildContext context
)

Implementation

Future<bool> completeSignup(BuildContext context) async {
  assert(_currentFbUser != null);

  /// This will proceed with creating an account
  try {
    final token = await _currentFbUser!.getIdToken(true);
    final profile = await authModule.accountCompleter
        ?.call(context, _currentFbUser, token);

    _currentUserProfile =
        AuthUserProfile(_currentFbUser, profile, AuthEventSource.postSignup);
    userStateChangedStream.current = _currentUserProfile!;
    return true;
  } catch (e) {
    log.severe("Error completing signup: $e", e);

    return false;
  }
}